Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • QtRpt build failure

    Unsolved
    4
    0 Votes
    4 Posts
    331 Views
    SGaistS
    What was it ?
  • Common properties across a number of controls?

    Unsolved
    1
    0 Votes
    1 Posts
    119 Views
    No one has replied
  • Drag and Drop of underlying Mousearea

    Unsolved
    1
    0 Votes
    1 Posts
    170 Views
    No one has replied
  • How to check suitable version of components in qt

    Moved Unsolved
    3
    0 Votes
    3 Posts
    342 Views
    J
    @jsulm I meant modules such as import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Controls 2.15
  • adding a color value to a ListElement

    Unsolved
    4
    0 Votes
    4 Posts
    634 Views
    oria66O
    @mzimmers Right, ListElements are a collection of roles. If you want to set "dynamically" those roles, you should play with the javascript functions of ListModel, and implement some kind of mechanism (depends on your use case) to update it.
  • Trigger QEvent::LanguageChange

    Solved
    4
    0 Votes
    4 Posts
    588 Views
    SGaistS
    I would created a class that handles the loading/unloading of QTranslator objects. You can then use an instance of it as a context property so you can call the method you want to change the language.
  • In QML how do I display images as some kind of array

    Unsolved
    4
    0 Votes
    4 Posts
    465 Views
    fcarneyF
    If you are using Qt Creator click on the Welcome icon in the left of Creator side bar. Then search for "game". Then look at the QML Advanced Tutorials 1, 2, and 3.
  • [SOLVED] Volume calculation from 3 spinBox values

    Solved
    3
    0 Votes
    3 Posts
    272 Views
    A
    @oria66 Thank you so much! Works perfectly here.
  • Tiles randomly disappearing in Map

    Unsolved
    2
    0 Votes
    2 Posts
    198 Views
    P
    Did you find a solution for the problem? I am facing the same problem - interestingly it works when using widgets but in Qml I see the exact same problem.
  • Qt for uwp Set size

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

    Unsolved
    1
    0 Votes
    1 Posts
    16 Views
    No one has replied
  • how to determine active tab in TabBar?

    Solved
    2
    0 Votes
    2 Posts
    566 Views
    mzimmersM
    Sigh...I love when I find the answer immediately after posting... Container currentIndex TabBar { id: root currentIndex: { if (plateNavViewModel.viewingTheYield) { 0 } else { 2 } } I know the hard-coding is bad, but...it works.
  • Ambient Temperature Sensor

    Unsolved
    2
    0 Votes
    2 Posts
    233 Views
    MarkkyboyM
    It seems you are getting your technologies mixed up. The example you run is for the accelerometer (movement) but you are talking about a temperature sensor. Just adding bits of code is not going to make code run, there is a little more to it than that.
  • How do I load multiple images to be accessed by a Canvas as an array in QML

    Unsolved
    2
    0 Votes
    2 Posts
    244 Views
    fcarneyF
    @AI_Messiah said in How do I load multiple images to be accessed by a Canvas as an array in QML: loadImage(mycanvas.oneEl); Shouldn't this be loadImage(oneEl)? oneEl is not a property of mycanvas. Edit: isImageLoaded will tell you if its loaded. https://doc.qt.io/qt-5/qml-qtquick-canvas.html#loadImage-method
  • QtConcurrent::run() is failing sometimes

    Solved
    3
    0 Votes
    3 Posts
    294 Views
    P
    @SGaist - Thanks for the information. The issue is resolved now. Below is the sample code QFutureWatcher<void> *modelThread = setFuture(QtConcurrent::run(this, &classname::method));
  • QT Quick version 2.15 for Raspberry Pi 3

    Solved qml qt quick
    5
    0 Votes
    5 Posts
    1k Views
    R
    @KroMignon Some functions in QtQuick.Extras, QtQuick.Controls and QtQuick.Shapes, also I believe QtCharts is not available in Qt 5.11. Mainly visual features for styling.
  • Tearing in video playback - Video QML type

    Unsolved
    1
    0 Votes
    1 Posts
    168 Views
    No one has replied
  • How do I create multiple Dynamic Objects that have some kind of indexed id?

    Unsolved
    2
    0 Votes
    2 Posts
    169 Views
    sierdzioS
    Simply use a QList<QObject*> or QVariantList, depending on your space ship backend implementation. If you want a QML-only solution, for some reason - you can parent all your space ships under a single Item and then access them using item.children.
  • accessing elements of a ListModel

    Solved
    27
    0 Votes
    27 Posts
    7k Views
    mzimmersM
    @fcarney said in accessing elements of a ListModel: onBottleListChanged: updateListModel() Oh, OK...I see my problem now. I was trying to use this line of code from within the repeater. I see now that it should go in the containing Rectangle. You call the function that rebuilds your ListModel. Don't you want that to update when it changes? Also, you said you had two lists of data. Does it have a signal too? I have two sources of data: one in C++ and one in a QML ListModel. I actually have 2 QML ListModels, but only use one (which one to use is determined at runtime by an environment variable). The only signal is emitted by the C++ update function; nothing in the ListModels. As it turns out, I've been able to eliminate the use of the QML update function entirely (though I still need the getColor routine() above, so I won't need to use this feature here, but this has been very educational. Thank you for all the help.
  • Is there a way to load a STL or VRML(.wrl) file and show it with Qt Quick 3D?

    Unsolved
    4
    0 Votes
    4 Posts
    619 Views
    SGaistS
    Sorry, that's one of the corner of Qt I do not have much experience with.