Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • Does QML support native look-and-feel on Windows?

    Solved 22 Mar 2018, 10:11
    1 Votes
    14 Posts
    4k Views
    Does that mean that native styling is only supported by Qt Quick Controls 1? Yes. @raven-worx, is this still true? I ask because I want to commit to Qt 6, but it's really, really difficult when native style support is so inconsistent. I see that QtWidgets, which inherits the native QStyle is deprecated in favour of QML, but solely the deprecated QtQuickControls 1 appears to provide native QQuickStyle, for its replacement – at least QtQuickControls 1 – does not appear to. I'm using KDE Plasma 6 as my development and deployment environment, so native "application style" (as kcm_style phrases it) is important to me (until at least KDE's Union can unify the QStyle and QQuickStyles). If not, I'll convert to something like wxQt / wxMSW (post/822753) per-platform.
  • TreeViewDelegate Unable to assign QJSValue to QString

    Solved about 7 hours ago
    0 Votes
    2 Posts
    14 Views
    TreeViewDelegate use model.display This help me contentItem: Item{}
  • 0 Votes
    5 Posts
    65 Views
    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 } } }
  • This topic is deleted!

    Unsolved about 20 hours ago
    0 Votes
    2 Posts
    36 Views
  • qtvideosink not work on embedded target

    Unsolved a day ago
    0 Votes
    3 Posts
    52 Views
    @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 7 days ago
    0 Votes
    2 Posts
    86 Views
    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 3 days ago
    0 Votes
    1 Posts
    31 Views
    No one has replied
  • How move Map

    Solved 4 days ago
    0 Votes
    3 Posts
    150 Views
    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 4 days ago
    0 Votes
    1 Posts
    60 Views
    No one has replied
  • How in TableView use DelegateChooser

    Solved 6 days ago
    0 Votes
    7 Posts
    181 Views
    Sorry, it work, problen in my model
  • Qt 6.6.1 - "ColumnLayout.uniformCellSizes"

    Unsolved 6 Feb 2024, 14:51
    1 Votes
    2 Posts
    233 Views
    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
  • 0 Votes
    2 Posts
    85 Views
    I would make my model looping as a workaround. Maybe a proxy model working with your view? Exposing 1 mirror of your model before the 1 2 3 4 1 2 3 4 1 2 3 4 x <-- start index of your view Ensure that the index is always in the middle part of the model. If the current index of the views goes in the first part, "remove" the last part and "insert" a new mirror part in front so that the index is now in the middle again. Same thing if it goes to the last part, shift the first part at the end.
  • Availibility Qt6.8.4

    Solved 6 days ago
    0 Votes
    7 Posts
    195 Views
    Ah, didn't know that. I never tried to build Qt from source.
  • TreeViewDelegate is last child

    Solved 8 days ago
    0 Votes
    3 Posts
    72 Views
    Possible find real row like that: realRow: treeView.index(row, column).row
  • 0 Votes
    7 Posts
    153 Views
    @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 11 days ago
    0 Votes
    5 Posts
    150 Views
    @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 18 days ago
    0 Votes
    8 Posts
    307 Views
    What I see with MultiEffect: [image: 625e447c-36c1-4ba7-b7ae-7a85e3bc9f45.png]
  • Displaying RTSP Stream Inside QMediaPlayer Window on i.MX6 Device

    Unsolved 13 days ago
    0 Votes
    2 Posts
    94 Views
    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

    Unsolved 14 days ago
    0 Votes
    3 Posts
    121 Views
    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 15 days ago
    0 Votes
    4 Posts
    127 Views
    @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.