Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • how to display huge amount data in qml chartview LineSeries?

    Unsolved
    2
    0 Votes
    2 Posts
    474 Views
    fcarneyF
    This is not sustainable. Cache the data to disk and load n points from this cache. Give yourself the ability to scroll through the data that was collected. Maybe a date time lookup. I like to use sqlite databases for stuff like this and then I just do queries using the qdatabase classes.
  • Nodeinstantiator performance issue

    Unsolved
    1
    0 Votes
    1 Posts
    256 Views
    No one has replied
  • How to assign each data point with different color in scatter charts in QML

    Solved
    2
    0 Votes
    2 Posts
    687 Views
    P
    @Praveen-Illa There is currently no way to give each data point in the same series a different colour. As a workaround, you can split your data points into multiple series (for example, 1 point per series). This will allow you to set different colours to each of the points.
  • QML ColorDialog within a Page

    Unsolved
    1
    0 Votes
    1 Posts
    137 Views
    No one has replied
  • Use Delegate in ComboBox

    Unsolved
    2
    0 Votes
    2 Posts
    362 Views
    TassosT
    @chiyuwang Your model should provide a role name for the desired value, let's say value, then you can inform the combobox via its valueRole property. See the example below, copied from Qt documentation ApplicationWindow { width: 640 height: 480 visible: true // Used as an example of a backend - this would usually be // e.g. a C++ type exposed to QML. QtObject { id: backend property int modifier } ComboBox { textRole: "text" valueRole: "value" // When an item is selected, update the backend. onActivated: backend.modifier = currentValue // Set the initial currentIndex to the value stored in the backend. Component.onCompleted: currentIndex = indexOfValue(backend.modifier) model: [ { value: Qt.NoModifier, text: qsTr("No modifier") }, { value: Qt.ShiftModifier, text: qsTr("Shift") }, { value: Qt.ControlModifier, text: qsTr("Control") } ] } }
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Sending messages from a client to server using network on the same machine

    Unsolved
    31
    0 Votes
    31 Posts
    7k Views
    Q
    @Bob64 The fortune client/server apps are different from (at least) that point of view that the server sends messages to the client by a button on the client. It's way different from mine. Well, these two QML apps are considerably simple but I don't know why we (helpers and me) can't work it out and get them to work! :(
  • 0 Votes
    5 Posts
    1k Views
    G
    @jsulm I wrote the error message
  • How to make this menu ?

    Unsolved
    6
    0 Votes
    6 Posts
    546 Views
    ?
    @lemons working like charm ! @GrecKo thanks i will review
  • Tumbler does not load last element if model is 49, 98, 196, etc. in Qt 5.15

    Unsolved
    2
    0 Votes
    2 Posts
    201 Views
    A
    Hi again. This same behavior is described in this bug report: https://bugreports.qt.io/browse/QTBUG-90479 But how is Tumbler related to PathView? I tried to load the model dynamically, to change the currentIndex dynamically, etc. but I get the same result. Do you have any idea or workaround? Thanks!
  • QML-Map prefetchData()

    Unsolved
    1
    0 Votes
    1 Posts
    178 Views
    No one has replied
  • How do I run a program in QT creator?

    Unsolved
    9
    0 Votes
    9 Posts
    1k Views
    D
    @DavidIT said in How do I run a program in QT creator?: qt5-qtquickcontrols2. Installed what you wrote. it helped, thank you
  • ListView Model setProperty Work only 1 time

    Solved
    3
    0 Votes
    3 Posts
    199 Views
    dheerendraD
    In addition to what @lemons said, model property is not updated when you changed the check box from UI. Hence the issue. You can try with following piece of code inside the CheckBox. onClicked: { _root.ListView.view.model.setProperty(1, "mystatus",checked) }
  • How to write a QML extension from a custom C++ class?

    Solved qtquick c++ qt extension
    7
    0 Votes
    7 Posts
    1k Views
    G
    when I rerun, I am told that QtWebView cannot contain more than one item, so I guess I cannot save a c++ class in QtWebView, going through the doc I found that the c++ classes I needed had already been extended to the quick module. So, I'm going to use the c++ classes in this module instead. Thank you very much for your help.
  • It was worked for me too

    Unsolved
    1
    0 Votes
    1 Posts
    219 Views
    No one has replied
  • CheckBox Indicator Image bug

    Unsolved
    1
    0 Votes
    1 Posts
    251 Views
    No one has replied
  • Garbage collector issue

    Solved
    10
    0 Votes
    10 Posts
    584 Views
    jeanmilostJ
    @fcarney Wow excellent, this work very well. Thank you very much for your help
  • Visibility of delegate in pathview in QML

    Unsolved @dheerendra @qmlandqtquick @pathviewdeleag
    1
    0 Votes
    1 Posts
    284 Views
    No one has replied
  • Row component: Invalid property name "leftPadding"

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    GrecKoG
    Which Qt Quick version are you importing in your QML file? My guess is that you should replace import QtQuick 2.0 by import QtQuick 2.15.
  • How to include .idl in project and generate files

    Unsolved
    2
    0 Votes
    2 Posts
    255 Views
    jsulmJ
    @Snorlax In QMake you will have to write a custom build step, see https://doc.qt.io/qt-5/qmake-advanced-usage.html