Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • Error: Cannot open: "qrc:/images/Logo.png"

    Unsolved
    3
    0 Votes
    3 Posts
    408 Views
    X
    @JoeCFD I already tried it that way but this also doesn't work.
  • QT5core

    Unsolved
    5
    0 Votes
    5 Posts
    490 Views
    S
    @sneha-ashok And i am using qt in linux ubuntu 18.04
  • This topic is deleted!

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

    Unsolved
    1
    0 Votes
    1 Posts
    15 Views
    No one has replied
  • 0 Votes
    1 Posts
    166 Views
    No one has replied
  • import QT += winextras

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    JoeCFDJ
    @DragoonXVIII That is one of main magics on Windows. Restart the machine and things work.
  • Upgraded to Qt 6.5 and now all controls looks oversized

    Unsolved
    7
    0 Votes
    7 Posts
    457 Views
    K
    @JoeCFD - Thanks for all your suggestions. I will wait for somebody else to comment on the size .
  • layer effect

    Moved Unsolved
    1
    0 Votes
    1 Posts
    151 Views
    No one has replied
  • StackLayout removing a children Item

    Unsolved
    1
    0 Votes
    1 Posts
    161 Views
    No one has replied
  • How to add tick marks in QML Slider

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    H
    Setting the ticks as part of the background feels a bit like a dirty trick... This is definitively a step backwards compared to what we had in Qt 5.15.
  • QQmlApplicationEngine failed to load component

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    D
    @JoeCFD [image: 65dd7603-4bd1-4c6b-b7e7-0b002c6a2b10.png] unfortunately it didn't help....
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    17 Views
    No one has replied
  • Qt or PyQt without QML

    Unsolved pyqt6 qtquick control qtwidgets qtquick
    3
    0 Votes
    3 Posts
    893 Views
    E
    @JonB that answer is from 5 years ago, I had read it but had hopes something had changed. So the answer is still NO.
  • Possible Typo in Popular "Learn Qt 5" Book by Nicholas Sherrif?

    Unsolved
    2
    0 Votes
    2 Posts
    287 Views
    M
    @bluesanta I guess you are using Qt 6? There are some changes between Qt 5 and Qt 6. For example the constructor of QQmlListProperty does not take a reference any more: https://doc.qt.io/qt-6/qml-changes-qt6.html#removed-api Changing the code to QQmlListProperty<Command> CommandController::ui_createClientViewContextCommands() { return QQmlListProperty<Command>(this, &implementation->createClientViewContextCommands); } should work.
  • SCA TOOL For Qt QML

    Unsolved
    1
    0 Votes
    1 Posts
    150 Views
    No one has replied
  • MonthGrid wrong current index

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    H
    @Hit-Tiger-Tonight Workaround is like this: https://forum.qt.io/topic/144297/how-to-update-the-current-day-of-monthgrid/3?_=1681442215899
  • Side panel with QML Drawer

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    RokeJulianLockhartR
    @ODБOï, that code is a bit difficult to read since only some of it is formatted as code. Could you reformat it as a code block?
  • How to encode an image to base64?

    Unsolved
    2
    0 Votes
    2 Posts
    345 Views
    M
    Thanks, I also tried this but doesn't work: QFile file("/home/user/cat.png"); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) return QImage(); QByteArray content = file.readAll(); QImage::fromData(content.toBase64(QByteArray::Base64Encoding), "PNG");
  • QML signal to C++ slot in worker thread

    Solved
    22
    0 Votes
    22 Posts
    6k Views
    mzimmersM
    @jeremy_k said in QML signal to C++ slot in worker thread: Reaffirming the answer in the previous block, presume QAbstractItemModel member functions are not thread safe. Understood. The idea would be to have a thread that contains the network manager, and handles the IO. My various models would all reside in the main thread, and message requests (and replies) would be conveyed through signals and slots. That should eliminate any thread-based issues regarding the model updates and attendant updates to the QML portion of the application. I appreciate the comment about threads often causing more problems than they solve, and may well abandon the network thread, but I think it should work in this case.
  • handling user events in Qml/QtQuick?

    Solved
    11
    0 Votes
    11 Posts
    1k Views
    VStevenPV
    @jeremy_k Sure. If there's a better way to share this example, or if you have any comments at all, please do post them. EventGenerator.h https://ideone.com/46jUvx EventGenerator.cpp https://ideone.com/KgfpIZ main_snippet.cpp https://ideone.com/cNG65h VirtualPanel_snippet.qml https://ideone.com/RmoGkL PageLayout_snippet.qml https://ideone.com/lXsnTa