Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • QML mouse handlers

    Unsolved
    1
    0 Votes
    1 Posts
    162 Views
    No one has replied
  • How can i enable selection on TableView in QML Qt6.3?

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    ?
    sry, i will open a dedicate topic and mark this as resolved. Thank you
  • QML. How do you test it?

    Unsolved
    1
    0 Votes
    1 Posts
    190 Views
    No one has replied
  • Using Repeater inside ListModel

    Solved
    3
    0 Votes
    3 Posts
    613 Views
    D
    Thank you! I wasn't aware of that function, it works now. I'll leave the code if ever it can be useful for someone else. Component.onCompleted: { var i for(i = beginPartOne; i < beginPartTwo; i++) listModel.append({"val": i}) for(i = beginPartTwo; i < beginPartThree; i += 0.5) listModel.append({"val": i}) for(i = beginPartThree; i <= endOfRange; i++) listModel.append({"val": i}) } // each loop adds each segment below // 15 16 17 | 18 18.5 19 19.5 20 20.5 21 21.5 22 22.5 | 23 24 25 26 27 28 29 30
  • OpenGL Under QML - depth issue

    Unsolved
    1
    0 Votes
    1 Posts
    180 Views
    No one has replied
  • [HELP] : access QML object on c++

    Solved
    4
    0 Votes
    4 Posts
    370 Views
    J
    @sierdzio said in [HELP] : access QML object on c++: First of all, findChild() will scan for objectName: "me", not for id: me. Second, you should probably search through children of the engine. Third: read the docs :-) https://doc.qt.io/qt-6/qtqml-cppintegration-interactqmlfromcpp.html and https://doc.qt.io/qt-6/qtqml-cppintegration-overview.html hi , thanks , got it working :) i thought that findChild is looking for id will mark this as solved thanks :)
  • Pane and binding loop

    Unsolved
    1
    0 Votes
    1 Posts
    166 Views
    No one has replied
  • How to show countdown timer on top of button

    Unsolved
    1
    0 Votes
    1 Posts
    410 Views
    No one has replied
  • Is it possible to dynamically remove a particular item in Repeater?

    Unsolved
    2
    0 Votes
    2 Posts
    691 Views
    fcarneyF
    Create a ListModel and use that as your model in your Repeater. Delete entries from the ListModel.
  • QWindow::startSystemMove() Can't drag by right button

    Unsolved
    1
    0 Votes
    1 Posts
    124 Views
    No one has replied
  • MapboxGL plugin built on MSVC2019 incompatible with Qt Quick

    Unsolved
    2
    0 Votes
    2 Posts
    412 Views
    M
    Hi all, Just setting "radius" to a very small value can resolve that one. for example radius: height/1000 inside the Rectangle. I still don't know why, can someone explain, please?
  • Multiple sensor data in same page

    Unsolved
    1
    0 Votes
    1 Posts
    125 Views
    No one has replied
  • QT 5 Opencv VideoCapture No Cap and Frame are seen

    Unsolved
    6
    0 Votes
    6 Posts
    471 Views
    SGaistS
    No it's not since there's nothing that invokes your function in what you posted.
  • QML Scatter3D series: base gradient along different axis

    Unsolved
    1
    0 Votes
    1 Posts
    138 Views
    No one has replied
  • QTQuick, OpenCv and Gstreamer frame capturing

    Unsolved gstreamer1.0 opencv
    1
    0 Votes
    1 Posts
    532 Views
    No one has replied
  • Qt5 vs Qt6 assigning empty string variable QML

    Solved
    2
    0 Votes
    2 Posts
    935 Views
    sierdzioS
    property string taskType: "" // Test: if (taskType.length === 0) { // something }
  • Need to fetch font size of the text which is inside the button, at runtime

    Unsolved
    1
    0 Votes
    1 Posts
    142 Views
    No one has replied
  • Drawer eats escape key event?

    Unsolved
    1
    0 Votes
    1 Posts
    157 Views
    No one has replied
  • QML video gives Error: "No valid frames decoded before end of stream" some of the time

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    C
    Any luck on solving this problem?
  • C++ use constants that defined in qml singleton file

    Solved
    3
    0 Votes
    3 Posts
    480 Views
    D
    I was able to resolve //main.cpp I did using this lines in main.cpp QQmlComponent component(&engine, QUrl(QStringLiteral("qrc:/pathToThatQmlFile.qml"))); QObject *object = component.create(); C++ClassName::getInstance()->setObject(object); //C++ As this qml file is singleton, in C++ class where constants need to be called, In constructor add: qmlRegisterSingletonType(QUrl(QStringLiteral("qrc:/pathToQmlFile.qml")), "com.Test.TestConstants", 1, 0, "TestConstants"); void C++ClassName::setObject(QObject *newObject) { item = qobject_cast<QQuickItem *>(newObject); qDebug() << item->property("phi").toDouble); } //QML pragma Singleton import QtQuick 2.14 Item { readonly property double phi: "3.142" }