跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.8k 貼文
  • Is command line: -platform webgl:port=xx deprecated?

    Unsolved
    2
    0 評價
    2 貼文
    410 瀏覽
    SGaistS
    Hi and welcome to devnet, From a quick search, QtQuick WebGL is not available at all in Qt 6 currently. See here for the comparison and explanation. Depending on what you are developing, Qt for WebAssembly might be a possibility.
  • 此主題已被刪除!

    Solved
    4
    0 評價
    4 貼文
    30 瀏覽
  • Will the new version of the Windows UI Kit be supported?

    已移動 Unsolved
    1
    0 評價
    1 貼文
    149 瀏覽
    尚無回覆
  • ListView and scrollable TextArea refreshing problems

    Unsolved listview textarea scrollview
    1
    0 評價
    1 貼文
    473 瀏覽
    尚無回覆
  • Best way to manage multiple random screens in a single window

    Unsolved
    5
    0 評價
    5 貼文
    398 瀏覽
    fcarneyF
    I should point out, that you could use a push instead of a replace. Then have a back button that pops the last one off to go back. So you could use it the same way except with depth instead of how I did it.
  • How to make QQuickView behave like a popup menu?

    Solved
    2
    0 評價
    2 貼文
    315 瀏覽
    A
    This doesn't seem to be implemented. Setting Qt::Popup doesn't work for QQuickView, and doesn't work for QQuickWidget, either. A workaround is to use a plain QWidget as popup, and add a QQuickWidget as child.
  • StackView pop not working

    Unsolved
    1
    0 評價
    1 貼文
    157 瀏覽
    尚無回覆
  • Enable QML error when loading objects dynamically

    Solved
    3
    0 評價
    3 貼文
    283 瀏覽
    M
    @jsulm Ok I didn't understand what this sentence actually says. Thanks for pointing out!
  • PropertyAnimation in signal handler

    Unsolved
    3
    0 評價
    3 貼文
    225 瀏覽
    M
    @GrecKo I was trying to find a way to execute an animation without declaring it separately. In "meta-code": onSignalTrigger: { timer.stop() doSomething() doSomethingElse() // animate property PropertyAnimation { target: theObject; property: "opacity"; to: 0 } } The long way is: PropertyAnimation { id: myAnim; target: theObject; property: "opacity"; to: 0 } onSignalTrigger: { timer.stop() doSomething() doSomethingElse() // animate property myAnim.start() } I find the first syntax is more readable
  • StateMachine or SequentialAnimation?

    Unsolved
    1
    0 評價
    1 貼文
    148 瀏覽
    尚無回覆
  • How to Customise RangeSlider in qml

    Unsolved
    1
    0 評價
    1 貼文
    449 瀏覽
    尚無回覆
  • Weather data value to rotation

    Solved
    7
    0 評價
    7 貼文
    446 瀏覽
    MarkkyboyM
    @J-Hilk - sorry, scrap that last comment, I changed it to value and now it works!, yay!!, thank you @J-Hilk, you sir are a genius!! :)
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    6 瀏覽
    尚無回覆
  • Error Creating QQuickPaintedIntem

    Unsolved
    2
    0 評價
    2 貼文
    271 瀏覽
    sierdzioS
    Code looks fine (but when posting on forum, please wrap it with ``` tags). Run it with a debugger, or with address sanitizer, and see where it really crashes. Perhaps you do something wrong in main.cpp?
  • Can I efficiently get just one item from QAbstractItemModel while keeping role bindings?

    Solved
    10
    0 評價
    10 貼文
    889 瀏覽
    A
    @fcarney yeah, probably would have to just test and measure the performance, which is probably quite a bit of work with unsure result and sadly, I don't have unlimited time.. Meanwhile, I've came up with different approach and even tested it a little and it seems to be working. Not sure how viable it is or what pitfalls it might have though. Basically, I'd change my models into models of QObjects with Q_PROPERTY for every role. Model would function as normal but would have extra functionality - it would be possible to register another QObject of same class as a mirror (each xChanged property signal from source item would be connected to setX signal of the mirror). This mirror QObject would exist in QML and its properties could be used in the same way as model roles. Repeater { model: playerModel delegate: Item { Label { text: "Player name: " + nameRole } PlaylistMirror { id: playlist uuid: playlistUuidRole } Label { text: "Playlist name: " + playlist.name } } This mirror object would register itself to the model whenever its uuid property changed. Something like this (with checks ofc): void register(QUuid uuid, Playlist *mirror) { Playlist * source = find(uuid); connect(source, &Playlist::nameChanged, mirror, &Playlist::setName); mirror->setName(source->name()); // initial sync // same for all roles } It should be safe - if the source object got destroyed by mistake, it would simply stop updating the mirror instead of crashing that would happen if I just got raw pointer from the model. There would have to be some logic for cleaning (if mirror changed the uuid, it would have to disconnect and connect again; if source was deleted, mirror should be cleaned) but otherwise, it seems like decent solution. The performance hit of generating xChanged signals without any receiver should be negligible and there is no need for any extra models or filtering. Higher memory usage is non-issue. Here's diagram for better illustration: [image: 7384b685-a006-435b-be61-fa8afecc899d.png] What do you think?
  • Qt Creator Form Editor no drag & drop possible

    Unsolved
    1
    0 評價
    1 貼文
    218 瀏覽
    尚無回覆
  • showing slider in ComboBox using QML

    Unsolved
    4
    0 評價
    4 貼文
    1k 瀏覽
    GrecKoG
    You can use the fact that the popup's contentItem of the ComboBox is a ListView and use ScrollBar vertical attached property: Binding { target: comboBox.popup.contentItem.ScrollBar property: "vertical" value: ScrollBar { policy: ScrollBar.AlwaysOn } }
  • VoiceOver (iOS/Mac) won't acknowledge accessible selected property (Qt Quick)

    Unsolved accessibility qtquick ios mac issue
    1
    0 評價
    1 貼文
    511 瀏覽
    尚無回覆
  • How to create QVideoFrame from AVFrame from FFmpeg in QT6?

    Unsolved
    3
    0 評價
    3 貼文
    576 瀏覽
    I
    Thanks, I will try it.
  • How To Play RTP-VideoStreams with QML2 VideoOutput?

    5
    0 評價
    5 貼文
    7k 瀏覽
    M
    on Linux (GStreamer backend) , usually udp should be used to playback the stream