Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
19.8k Topics 76.6k Posts
  • help

    Locked Unsolved
    2
    0 Votes
    2 Posts
    116 Views
    SGaistS

    Hi,

    Please don't open the same question multiple times.

    Duplicate

    Closing this one

  • guys can u help me with these problems

    Unsolved
    5
    0 Votes
    5 Posts
    248 Views
    Pl45m4P

    @QtWorld said in guys can u help me with these problems:

    i have so little info about this web site

    What website?

    receive data from there using udb with python code and send it to qt creator in windows

    I don't know what UDB is and you don't send anything "to QtCreator", since it's an IDE like Eclipse or Visual Studio.

    Isn't PX4 software for drones?
    Unless you are lucky and find somebody who had used this before, I doubt that we can help with that.

    Here's a general guide on how to use QML in a Qt Python app.

    https://doc.qt.io/qtforpython-6/tutorials/qmlapp/qmlapplication.html
  • 0 Votes
    4 Posts
    866 Views
    C

    I don't know how to prevent the qml from deleting the shared pointer.
    So I return a new classs to qml, it works well. Hope anyone can tell me if it corrected.

    } else if(role == modeRole) { if(deviceVariable.modeModelPtr.isNull()) return QVariant(); //return QVariant::fromValue(deviceVariable.modeModelPtr.data()); return QVariant::fromValue(new ModeModel(*deviceVariable.modeModelPtr)); } }; DeviceVariables { // .... QSharedPointer<ModeModel> modeModelPtr; } class ModeModel : public QAbstractListModel { public: //.... ModeModel(const ModeModel &other) : QAbstractListModel(other.parent()) { modeList = other.modeList; } private: QList<ModeData> modeList; };

    I debug the ~ModeModel() and found the qml will auto delete the new ModeModel() which I provide in the cpp.

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    18 Posts
    17k Views
    DuBuD

    That's easy: Your file is named "Main.qml" and you try to load it as "main.qml".

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    16 Views
    No one has replied
  • 0 Votes
    6 Posts
    588 Views
    N

    hello, i wonder why toVariant() dont work for me,toVariant xxx is not a function

  • Icon image does not display correctly on QML button

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    Q

    where the explonation....?

  • 0 Votes
    10 Posts
    6k Views
    Q

    @p3c0 nice job!

  • 2-d Histogram

    Unsolved
    2
    0 Votes
    2 Posts
    163 Views
    SGaistS

    Hi and welcome to devnet,

    You might want to check the new Qt Graphs module.

    Hope it helps

  • sending signal from inline Component?

    Solved
    4
    0 Votes
    4 Posts
    201 Views
    A

    Although you used a different solution, I think doing the following should work:

    Connections { target: myLoader.item function onTextFieldClicked(yValue, itemHeight) {...} }
  • Hi guys I need help

    Unsolved
    2
    0 Votes
    2 Posts
    138 Views
    No one has replied
  • QQmlApplicationEngine failed to load component

    Unsolved
    3
    0 Votes
    3 Posts
    170 Views
    B

    My bad, here's the tree project :

    appTestQML/
    ├── CMakeLists.txt
    ├── Main.qml
    ├── resources.qrc
    ├── backend.cpp
    ├── backend.h
    └── main.cpp

  • QtChart: Single Axis-X with multiple Axis-Y

    Unsolved
    3
    0 Votes
    3 Posts
    195 Views
    T

    @Bob64 Thanks for your hint!
    I'm trying this way...

  • class member is changed by who????

    Unsolved
    5
    0 Votes
    5 Posts
    187 Views
    Q

    @SGaist
    I restart the computer, delete all obj file and rebuild , now it runs fine.
    stupid microsoft -_-

  • can u help me with these problems?

    Unsolved
    4
    0 Votes
    4 Posts
    155 Views
    Axel SpoerlA

    …please don’t post images of text. Post your code directly instead and use the </> code tags to mark it correctly.

  • ListView drag and drop Elements

    Solved
    2
    0 Votes
    2 Posts
    139 Views
    J

    Hi, I have fixed it now.
    Calling the wrapper function for the moveRows() in the DropArea does the job.
    Initially I tried to call it wrongly (mode.moveItNow() does not work because I think the model in here is the QAbstractListModel object and not my upper class which inherits from QAbstractListModel.
    So all the meme related function are not even necessary...

    so I replaced the model.moveItNow() with rootStore.pathToProperty.MyCustomModel.moveItNow()

    I hope that explains it for those who will end up with a similar problem/question

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    16 Views
    No one has replied
  • 0 Votes
    6 Posts
    286 Views
    SGaistS

    Would it be possible to have a picture of what you are getting and what you are expecting to get ?