Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • display loading while for loop is working in qml

    Unsolved
    2
    0 Votes
    2 Posts
    388 Views
    sierdzioS
    You probably need to give the event loop some time. Run your loop via a signal or via Qt.callLater(). This will give the even loop a chance to update QML before the loop starts.
  • QML One application, one taskbar entry, multiple windows

    Unsolved
    1
    0 Votes
    1 Posts
    469 Views
    No one has replied
  • Issue in Module not installed

    Unsolved qtdesignstudio qtcreator qt6.2
    1
    0 Votes
    1 Posts
    657 Views
    No one has replied
  • Converting QMLProject to Pro issues, questions

    Unsolved
    1
    0 Votes
    1 Posts
    182 Views
    No one has replied
  • Issue with listview that resets when scrolling

    Solved
    3
    0 Votes
    3 Posts
    286 Views
    M
    @sonicss found my issue, did not know I had to store the dynamic data I put into the listview. When i stored it in the model it survived scrolling.
  • QML. ChartView. Is it possible to increase distance between the axe and values?

    Unsolved
    3
    0 Votes
    3 Posts
    256 Views
    L
    @sonicss said in QML. ChartView. Is it possible to increase distance between the axe and values?: range You could add a "<br>" to the label format, or rotate the label: ValueAxis { // [...] labelFormat: "<br>%.0f" } ValueAxis { // [...] labelsAngle: -60 }
  • Native application window inside QML

    Unsolved
    1
    0 Votes
    1 Posts
    180 Views
    No one has replied
  • How to add a color on TableView and keep previous color as I select a row.

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    M
    @lemons  Thank you so much ! This is the best solution !
  • How to Push multiple Values to an Array in a single time

    Solved
    5
    0 Votes
    5 Posts
    452 Views
    P
    @lemons Thanks again and Sorry for troubling you again I understood, how to store the key value pair in the list using json object. But, one thing that is disturbing in my mind is, if I want to push 3 or 4 arguments to the list like below ({"A001", 1, "Item1"}, {"A002", 2, "Item2"}) How can I do this ? I know these are the basic things in js, but can't figure out the solution
  • Is it possible to load a QML module at runtime with a static-compiled Qt Application?

    Unsolved
    1
    0 Votes
    1 Posts
    418 Views
    No one has replied
  • How to use custom components in QML Repeaters

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    J.HilkJ
    @Markkyboy [image: 67c5e653-128f-457b-b056-3392705884c9.png] and if you actually adjust the sizes a bit, one also sees the 2nd component [image: f21066b7-ca4e-49f4-a3e2-28d6bd1e88fd.png] like I said, works perfectly fine. But admittedly I should have used the correct screenshot.
  • Memory leak in StackView.replace?!

    Unsolved
    5
    0 Votes
    5 Posts
    436 Views
    A
    @J-Hilk no, we don't have an initialComponent set.
  • Create a MessageDialog using Qt Creator

    Unsolved
    3
    0 Votes
    3 Posts
    340 Views
    Q
    @JKSH Try "import Qt.labs.platform 1.1" (version number only needed in Qt 5, not Qt 6) instead of "import QtQuick.Dialogs 1.1". Thanks, it worked, but why do I need to import Qt.labs.platform 1.1 while the project is not of Qt 6 but Qt 5? The second question about that part is that, while the project works, but Qt Creator 6 doesn't recognize the element and draws a red line under it! Up to know, I guess Qt5 was better than the existing Qt6. Note: This version of MessageDialog is a bit different from the one you linked. That version does not give the expected output. So you think why I'm downgrading to qmake and Qt 5 while I'm normally using Qt6 and CMake! :|
  • Interacting with UI increases loop time in a separate worker thread

    Unsolved
    1
    0 Votes
    1 Posts
    185 Views
    No one has replied
  • QML Application on Rasppberry, Mouse events are passed to the Raspbian Desktop

    Unsolved qml
    1
    0 Votes
    1 Posts
    158 Views
    No one has replied
  • Scope trouble. Accessing propeties out of scope.

    Solved
    5
    0 Votes
    5 Posts
    385 Views
    fcarneyF
    Are you wanting the Rectangle to exist when not visible or the data? If its the latter then take a data driven approach rather than messing with Items. You can build a ListModel in QML with your data and access the data inside that. Then it is primed to be used with various views.
  • TabView & Tab missing from Quickcontrols 2

    Unsolved
    1
    0 Votes
    1 Posts
    147 Views
    No one has replied
  • NOTIFY on grouped properties

    Solved
    4
    0 Votes
    4 Posts
    488 Views
    raven-worxR
    @ocgltd EVERY property you use in a statement must either be CONSTANT or have a NOTIFY signal. depending on which property gets changed, this notifier signal causes a reevaluation of the property binding.
  • Insert characters with accentuation in inputText

    Moved Unsolved
    2
    0 Votes
    2 Posts
    188 Views
    R
    The problem is caused because I'm using Qt Virtual Keyboard but I don't know how to avoid it.
  • Network programming with Qt

    Unsolved
    7
    0 Votes
    7 Posts
    756 Views
    GrecKoG
    Networking is such a broad concept that if you don't have a specific use case it's hard to give advices. The client code for a REST API can be very boring. see this code I made a long time ago to display the bike share network of my city as an example : https://github.com/oKcerG/MeetupSFPMMap/blob/master/main.qml the code to fetch the data is barely 10 lines (and simple ones). The model is handled via https://github.com/benlau/qsyncable , don't populate data manually in a for loop like done in the QML book. For more advance use case you would use QNetworkAccessManager in C++, potentially with OAuth and expose a nice API to QML. Or maybe you need to use a third party lib or implement a binary protocol with QTcpSocket. Or maybe something with zmq or protobuf ...