Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Possible reasons for a "qrc:/main.qml:-1 File not found" error

    Solved
    18
    0 Votes
    18 Posts
    18k 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
  • Unable to save a list of object with the Settings QML type

    Solved
    6
    0 Votes
    6 Posts
    761 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
    3k Views
    Q
    where the explonation....?
  • QQuickPaintedItem::mouseReleaseEvent() only called after double click

    Solved qquickpaintedit
    10
    0 Votes
    10 Posts
    6k Views
    Q
    @p3c0 nice job!
  • 2-d Histogram

    Unsolved
    2
    0 Votes
    2 Posts
    265 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
    293 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
    212 Views
    No one has replied
  • QQmlApplicationEngine failed to load component

    Unsolved
    3
    0 Votes
    3 Posts
    252 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
    295 Views
    T
    @Bob64 Thanks for your hint! I'm trying this way...
  • class member is changed by who????

    Unsolved
    5
    0 Votes
    5 Posts
    278 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
    232 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
    196 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
  • QSGClipNode doesn`t clip any child item from qml built-in items like Rectangle

    Unsolved
    6
    0 Votes
    6 Posts
    396 Views
    SGaistS
    Would it be possible to have a picture of what you are getting and what you are expecting to get ?
  • Ways to make qml design responsive

    Unsolved
    3
    0 Votes
    3 Posts
    368 Views
    A
    Hi, perhaps someone more experienced can give a more authoritative answer. I would swear that bridge plugins are for when you are making layouts with a pre-set window size. Say a car or an embedded device. For all other applications, e.g. desktop / mobile i use: QtQuick.Layouts jugando con el Layout.MaximumWidth/Height and Layout.MinimumWidth/Height. For FontSize you can find the way that matches your style by searching here "Theme.qml" or "Style.qml" -> SourceGraph Doc ref: Qt Scalability Page
  • qtquick module not recognized

    Unsolved
    2
    0 Votes
    2 Posts
    269 Views
    SGaistS
    Hi and welcome to devnet, You looking for qt6-declarative-dev.
  • Automation IDs in QML

    Solved
    2
    0 Votes
    2 Posts
    244 Views
    A
    Found the answer to this question myself: It is by setting the objectName property: Control { objectName: "myAutomationId" } This will result in a Group automation element with automation ID myAutomationId. Found this by looking at https://github.com/faaxm/spix/blob/master/examples/RemoteCtrl/main.qml
  • Cannot edit QML files in Qt Creator

    Solved
    3
    0 Votes
    3 Posts
    256 Views
    A
    Thanks @sierdzio, if only! The solution for now is to open the QML file in Qt Design studio, available only from the Qt online installer on their website. I had missed the “open file” as opposed to “open project” button. Still weird, because as far as I can tell, Arch (I use arch, btw :) ) doesn’t have a repo for Design Studio, including in the AUR. And for sure, I had been editing QML files within Qt Creator before. Further, I have to open Design Studio from the command line, directly from the binary. But whatever, Design Studio totally suits my purpose here, so I’m happy (and ready to return to my backend lifestyle!). Will update if I figure out what I’m “really” doing wrong.