跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.8k 貼文
  • How do I use the QML 3D Model type?

    Unsolved
    1
    0 評價
    1 貼文
    251 瀏覽
    尚無回覆
  • TableView Multiple rows selection

    Unsolved
    1
    0 評價
    1 貼文
    438 瀏覽
    尚無回覆
  • QML reference to number in Loader

    Unsolved
    1
    0 評價
    1 貼文
    175 瀏覽
    尚無回覆
  • 0 評價
    8 貼文
    849 瀏覽
    A
    the event modifiers works but the WasdControler does not work.
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    2 瀏覽
    尚無回覆
  • Set global component by ID. How?

    Unsolved
    1
    0 評價
    1 貼文
    210 瀏覽
    尚無回覆
  • Help with making circular activity indicator

    Unsolved
    2
    0 評價
    2 貼文
    256 瀏覽
    J.HilkJ
    @RadiumBall are you sure, you don‘t want to just use the premade busy indicator ? https://doc.qt.io/qt-5/qml-qtquick-controls2-busyindicator.html it can be customized too!
  • Inner component like property. How?

    Solved
    2
    0 評價
    2 貼文
    211 瀏覽
    B
    Solution found. Issue closed. The example published here
  • using properties in calculations

    Solved
    3
    0 評價
    3 貼文
    380 瀏覽
    mzimmersM
    @fcarney your suggestion of making wellSizeRatio readonly led me to find the problem, which was that it was getting overridden in a calling file: WellPlate { id: theWells wellSizeRatio: 0.8 // circle height is smaller than grid square That's a pretty good debugging tip to keep in mind: if a property seems to be changing out from under you, check the callers for possible "overrides." Thanks for the help!
  • How to instantiate recursive component with QML Instantiator?

    Unsolved
    1
    0 評價
    1 貼文
    580 瀏覽
    尚無回覆
  • REST API client

    Solved rest api restful qml restful api
    12
    0 評價
    12 貼文
    20k 瀏覽
    S
    @tansgumus said in REST API client: RESTful API Hello, how did you solve it, I also want to use RESTful API in QT.
  • QtQuick animation types are not accessible from C++

    Unsolved
    3
    0 評價
    3 貼文
    320 瀏覽
    raven-worxR
    @gustorse most QML types are implemented in C++ - in the private part of the library (note the Q_QUICK_PRIVATE_EXPORT specifier of the classes). With qmake you can add the following line in your .pro file and access those types: QT += quick-private But note that this implies it will only work with exactly this Qt version you built your binary against and will most probably crash when running it against a different version. Just to keep in mind you will loose binary compatibility.
  • Regarding Z-order in QML

    5
    0 評價
    5 貼文
    31k 瀏覽
    pieterbekaertP
    Old topic, but not answered... The z property of Item determines stacking order of sibling items, i.e. elements belonging to the same item. Hence you cannot use the z property to move a child of parent A on top of (a child of parent) B if B is on top of A. (Which is a pity/pain :-)) https://doc.qt.io/qt-5/qml-qtquick-item.html#z-prop
  • Decompile FILENAME_qml.cpp

    Unsolved
    15
    0 評價
    15 貼文
    2k 瀏覽
    W
    @KH-219Design Hi and thank you for your long message! Well I think I will have to live with the fact that I have to rewrite the components. I'm already at the point where I have spent too much time trying to recover, so I better start rewriting... :) Thanks a lot for your help! best wishes Wink!
  • Create a custom QBrush object from qml for custom chart

    Unsolved
    2
    0 評價
    2 貼文
    564 瀏覽
    T
    Although this topic is too old , i will still mention that it's not possible to do this. Since QBrush may be not a subclass of qtobject. I would say that because i try to use qmlRegisterType() to register QBrush to qml engine. But when i create a instance i will get error below C:\Qt\5.15.2\mingw81_64\include\QtQml\qqmlprivate.h:71: error: 'staticMetaObject' is not a member of 'QBrush' You can modify the source code of chartview by adding color or other properties you need...
  • engine.rootContext()->setContextProperty change Instance

    Unsolved
    2
    0 評價
    2 貼文
    249 瀏覽
    B
    @neeme You need a new class that presents the same interface as Cust but which is implemented by delegating to the active instance of Cust. In addition, you need a means of selecting the active instance. It is not clear whether you want to control this from QML. If so, then simply add a suitable method to your new class.
  • positioning within a grid...revisited

    Solved
    12
    0 評價
    12 貼文
    1k 瀏覽
    mzimmersM
    I don't know if this is a particularly good way to do it, but I managed to make it work like this: Repeater { id: columnCapsRepeater model: issViewModel.columnCapList property var capHeight: parent.height Item { x: (cellWidth * index) + (hideColNames ? 0 : (cellWidth * headingSizeRatio)) y: hideRowNames ? 0 : (cellHeight * headingSizeRatio) height: cellHeight * nbrRowsInPlate width: cellWidth Rectangle { id: capStrip height: parent.height width: parent.width anchors.fill: parent anchors.leftMargin: cellWidth * 0.02 anchors.rightMargin: cellWidth * 0.02 radius: width * 0.1 color: 'lightgray' } I welcome any feedback on this approach. Thanks to everyone for the help!
  • QML String List

    Unsolved
    3
    0 評價
    3 貼文
    735 瀏覽
    fcarneyF
    @fcarney Also: "%1".arg(counter) String literals in QML have .arg functions similar to QStrings in C++.
  • PinchArea default behavior does not respect the pinch center + solution

    Unsolved qml pincharea
    1
    0 評價
    1 貼文
    211 瀏覽
    尚無回覆
  • Warning: stale focus object Object_QMLTYPE_22(0x6000033a9e40), doing manual update. Why?

    Unsolved
    1
    0 評價
    1 貼文
    644 瀏覽
    尚無回覆