跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.7k 貼文
  • ListView inside PathView = broken touchscreen scrolling

    Solved touch screen pathview listview
    3
    0 評價
    3 貼文
    280 瀏覽
    H
    I was afraid I would have to resort to hacks like this... Okay, I will try. Thank you.
  • TreeViewDelegate Unable to assign QJSValue to QString

    Solved
    2
    0 評價
    2 貼文
    143 瀏覽
    M
    TreeViewDelegate use model.display This help me contentItem: Item{}
  • Implementing something like the Qt Creator examples page in QML

    Solved
    5
    0 評價
    5 貼文
    383 瀏覽
    GrecKoG
    simplified code: Image { id: exampleImage source: "example.jpg" anchors.fill: parent smooth: true } Text { text: "This is an example description." color: "white" anchors.fill: parent font.pixelSize: 16 wrapMode: Text.Wrap horizontalAlignment: Text.AlignHCenter | Text.AlignVCenter HoverHandler { id: textHoverHandler } opacity: textHoverHandler.hovered ? 1 : 0 Behavior on opacity { NumberAnimation { duration: 300 easing.type: Easing.InOutQuad } } }
  • 此主題已被刪除!

    Unsolved
    2
    0 評價
    2 貼文
    36 瀏覽
  • qtvideosink not work on embedded target

    Unsolved
    3
    0 評價
    3 貼文
    253 瀏覽
    Q
    @jsulm said in qtvideosink not work on embedded target: QT_DEBUG_PLUGINS hello jsulm, actually every looks good from the log perspective, the only problem is when I run app, there's only a empty windows without videotestsrc rendering. check the below log with QT_DEBUG_PLUGINS set to 1. also in the qml I have print mediaplayer status. from below it change from 2 to 6, still quite good. btw, I'm not able to attach log directly via code style, it is detected as spam, I don't know why. so I paste it here qtvideosink-debug-plugin
  • Static Color bug via Qt particles

    Unsolved
    2
    0 評價
    2 貼文
    171 瀏覽
    J
    Could you put your complete code in one qml file so we can more easily test your exact setup?
  • Questions related to BoundedRectRendering of QSGRenderNode

    Unsolved
    1
    0 評價
    1 貼文
    97 瀏覽
    尚無回覆
  • How move Map

    Solved
    3
    0 評價
    3 貼文
    377 瀏覽
    Z
    PinchHandler and WheelHandler are for zoom. If you need to move the map you need DragHandler and TapHandler One of them rotates the map, I guess it's not what you want on mobile devices
  • SkyboxCubeMap rotation?

    Unsolved
    1
    0 評價
    1 貼文
    108 瀏覽
    尚無回覆
  • How in TableView use DelegateChooser

    Solved
    7
    0 評價
    7 貼文
    572 瀏覽
    M
    Sorry, it work, problen in my model
  • Qt 6.6.1 - "ColumnLayout.uniformCellSizes"

    Unsolved
    2
    1 評價
    2 貼文
    291 瀏覽
    A
    Hello! Just for future visitors since this is the first page that came up in a google search. https://bugreports.qt.io/browse/QTBUG-122024
  • Availibility Qt6.8.4

    Solved
    7
    0 評價
    7 貼文
    605 瀏覽
    M
    Ah, didn't know that. I never tried to build Qt from source.
  • TreeViewDelegate is last child

    Solved
    3
    0 評價
    3 貼文
    225 瀏覽
    M
    Possible find real row like that: realRow: treeView.index(row, column).row
  • QML file not found in resource system (qrc) despite correct qml.qrc configuration

    Solved
    7
    0 評價
    7 貼文
    564 瀏覽
    JKSHJ
    @Actarus said in QML file not found in resource system (qrc) despite correct qml.qrc configuration: I solved it using qt_add_resources() instead I'm glad to hear that you were able to resolve your issue. As the next step, I recommend taking the time to port from qt_add_resources() to qt_add_qml_module(): https://doc.qt.io/qt-6/qt6-port-to-qt-add-qml-module.html This provides your projects with benefits such as optimization by the Qt Quick Compiler (https://www.qt.io/blog/the-numbers-performance-benefits-of-the-new-qt-quick-compiler) and improved code analysis by your IDE.
  • [QML Runtime Tool - Qt 6.2] Using dummydata folder

    Solved
    5
    0 評價
    5 貼文
    373 瀏覽
    N
    @GrecKo that was the other idea. But It means creating a QML module just for dummy model used for ui prototype; and I don't like to release that module on production code. Example Form.ui.qml import com.myrealmodule import com.mydummymodule ... // Here I use singleton for dummy data ... However if I don't release that dummy module, clearly I have runtime problem when application starts, cause it.s not able to find It.
  • Shadow around an Item

    Solved
    8
    0 評價
    8 貼文
    621 瀏覽
    A
    What I see with MultiEffect: [image: 625e447c-36c1-4ba7-b7ae-7a85e3bc9f45.png]
  • Displaying RTSP Stream Inside QMediaPlayer Window on i.MX6 Device

    Unsolved
    2
    0 評價
    2 貼文
    166 瀏覽
    JoeCFDJ
    Take a look at the example here and use gstreamer code directly with qml sink. https://github.com/GStreamer/gst-plugins-good/tree/master/tests/examples/qt/qmlsink Do not use QMediaPlayer
  • Map Touch Issue in Qt QML

    Solved
    3
    0 評價
    3 貼文
    261 瀏覽
    K
    It's a bug, it's complicated: https://bugreports.qt.io/browse/QTBUG-115141 https://bugreports.qt.io/browse/QTBUG-107994 One workaround would be to set a TapHandler in the popup to consume the events.
  • In win10 can't customization

    Solved
    4
    0 評價
    4 貼文
    208 瀏覽
    B
    @JKSH said in In win10 can't customization: Yes, the best way is via the import statement: import QtQuick.Controls.Basic -- this allows the Qt Quick Compiler to optimize your code. That optimization can't happen if you set the style at runtime. Thanks for this tip. I'll bear it in mind for later. I currently have my code running in both Qt 5.15 and 6.8 as I may or may not need to make the switch in the near future (out of my control unfortunately). The runtime selection is a pragmatic approach for me at the moment.
  • In win 10 I get error with popup, but programm don't crash

    Solved
    4
    0 評價
    4 貼文
    331 瀏覽
    M
    I find error only with help analize code