It also won't know what a QString * is, don't use pointers here. I am not sure what your end goal is with this, but look at sub-classing QAbstractListModel....
peppermg Today, 16:00I typed two examples for "Hello World" program, one using "cout" but doesn't print anything, and the other by using "qDebug()" and printed the words, why "cout doesn't work?
#include...
Thanks, but same error with QString*. I think there is no way to use the static ListElement in QML. Maybe it is not allowed to change the values inside ListModel:...
4k Today, 10:36QML doesn't know what std::string* is. https://doc.qt.io/qt-5/qtqml-cppintegration-data.html#basic-qt-data-types
peppermg Yesterday, 19:58Look at QSerialPort (and the base class QIODevice) which implement a handshake protocol for writing and reading data based on signals and slots. A typical use is to connect a slot to the...
d_stranz Yesterday, 15:59Qt Centre is a community site devoted to programming in C++ using the Qt framework developed at Digia.
If you have any problems with Qt or its usage, you can get help from the members of Qt community on our forum.
Don't forget to check out our links section for more Qt resources.
Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded operating systems without rewriting the source code.
No result by using "cout", but by "qDebug()"
Today 14:56 by pascal111