cplusplusqt | Unsorted

Telegram-канал cplusplusqt - C++ & Qt

1169

Link: @CplusplusQt Embedded: @EMBCpp • Allowed Topics: C++ and everything related to Qt • Use only English • No Private Message without asking user's permission • No NSFW • No Spam • No unauthorized Bots • No Offtopic • No Self Promotions

Subscribe to a channel

C++ & Qt

no, it runs until you cancel the download in the web browser

Читать полностью…

C++ & Qt

responder is deleted out of scope here

Читать полностью…

C++ & Qt

I tested it with this:

int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);

QHttpServer server;

server.route("/", QHttpServerRequest::Method::Get, [](QHttpServerResponder&& responder)
{
TestDevice* td = new TestDevice();
responder.write(td ,QString().toUtf8());
});
server.listen(QHostAddress::Any, 8080);
return a.exec();
}

Читать полностью…

C++ & Qt

oww, that's good to know, thanks... 'cause I actually searched about placeholders in c++ and i thought they aren't really what they meant here....

Читать полностью…

C++ & Qt

Thank you very much 🙏🏼🙏🏼

Читать полностью…

C++ & Qt

OK, fair enough. But here i've got an example from the Qt documentation page regarding Bars3D:

Item {
width: 640
height: 480

Bars3D {
width: parent.width
height: parent.height

Bar3DSeries {
itemLabelFormat: "@colLabel, @rowLabel: @valueLabel"

ItemModelBarDataProxy {
itemModel: dataModel
// Mapping model roles to bar series rows, columns, and values.
rowRole: "year"
columnRole: "city"
valueRole: "expenses"
}
}
}

ListModel {
id: dataModel
ListElement{ year: "2012"; city: "Oulu"; expenses: "4200"; }
ListElement{ year: "2012"; city: "Rauma"; expenses: "2100"; }
....
}
}

It seems that when I click on the bars, the format of @colLabel, @rowLabel: @valueLabel is applied, showing, e.g. Oulu, 2012: 4200. Where are these placeholders ( such as @rowLabel) defined exactly in either the website or documentation?

Читать полностью…

C++ & Qt

Yes, but that can vary in different languages.

Читать полностью…

C++ & Qt

No, it’s used in lots of places. Like
%d in
printf(“%d”, 5)

Читать полностью…

C++ & Qt

is that something specific to Qt or C++?

Читать полностью…

C++ & Qt

I’m not sure, but i would guess it defines placeholders

Читать полностью…

C++ & Qt

I’m surprised this doesn’t happen more frequently

Читать полностью…

C++ & Qt

Let's not explain something with conspiracy when it can be perfectly explained with stupidity

Читать полностью…

C++ & Qt

Heard of it before.
What’s astonishing is that those industries use Windows rather than Unix like OSes.

Читать полностью…

C++ & Qt

Not a cyber attack. Just a f**kup in an update.

Читать полностью…

C++ & Qt

Does it have anything to do with Microsoft 365 crash happened today?

Читать полностью…

C++ & Qt

thats why it is deleted

Читать полностью…

C++ & Qt

if you go to http://localhost:8080 it starts an infinite download, and if you abort it the TestDevice will be deleted

Читать полностью…

C++ & Qt

Welcome to the group, @excitedmuffin! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

They seem to be called format tags

Читать полностью…

C++ & Qt

https://doc.qt.io/qt-6/qbar3dseries.html#details

Читать полностью…

C++ & Qt

(It doesn’t have to be the same in a language either)

Читать полностью…

C++ & Qt

right, but that's a % symbol, not a @... :))

Читать полностью…

C++ & Qt

@xLabel will probably be replaced with the value of xLabel when the string is needed

Читать полностью…

C++ & Qt

🤔🤔ok... but what's a placeholder?

Читать полностью…

C++ & Qt

Hello friends, does anyone know what exactly @ means in this QML code:

itemLabelFormat: "Series 1: X:@xLabel Y:@yLabel Z:@zLabel"

I can't seem to find the documentations for it...

Читать полностью…

C++ & Qt

I'm really late but i assume you could play with opacity?

Читать полностью…

C++ & Qt

Microsoft might have organized that crash on purpose to see what happens in reality...or how sensitive customers are...

Читать полностью…

C++ & Qt

All American Airlines, Delta and United flights are grounded worldwide. Other airlines likely affected.
Lots of things affected.

Читать полностью…

C++ & Qt

Many plants, industries are shutdown, many flights are cancelled for the same reason.

Читать полностью…

C++ & Qt

This is one of the biggest cyber attacks in the history.

Читать полностью…
Subscribe to a channel