Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
19.9k Topics 76.9k Posts
QtWS25 Last Chance
  • Sending input events through an OpacityMask

    Solved 26 Aug 2017, 19:22
    0 Votes
    5 Posts
    1k Views
    Hi! The trick is not to set the interactive content to visible: false. Instead, you have to set opacity to 0. Then the content remains interactive and everything works as expected.
  • QAbstractListModel and QCustomPlot

    Unsolved 25 days ago
    0 Votes
    16 Posts
    497 Views
    @SGaist I made a seperate issue for this problem in the Qt forum: qtcreator-errors-with-qtgraphs-qml Tobias
  • Imx8mp qt5.15 Video playyback with gstreamer

    Unsolved 20 days ago
    0 Votes
    2 Posts
    71 Views
    @Rosciio For 1, go to gstreamer website to find the bug report about this issue and get a workaround. You need to rebuild gsteamer for your OS. For 2, simply add qmlglsink in your layout to the sink of your pipeline. The example is here. https://github.com/GStreamer/gst-plugins-good/tree/master/tests/examples/qt
  • 0 Votes
    4 Posts
    131 Views
    @xava said in Help with VTK + Qt: DICOM Application Crashes After Scrolling First Slice: myVtkInteractorStyleImage::MoveSliceForward InteractorStyleSlices.h Check what you're doing in that line
  • What is the best practice for passing data from C++ to QML?

    Solved 21 days ago
    0 Votes
    6 Posts
    197 Views
    @peter-thompson Better not to mix them. I mixed only one gstreamer qml sink in a widgets app. It is doable, but messy.
  • Combobox dropdown text not showing

    Unsolved 3 Dec 2024, 12:24
    0 Votes
    7 Posts
    362 Views
    Did you try removing the qsTr() from around the strings? Might work that way.... I think I had something like this....
  • QML WebView in iOS can not receive cookieAdded signal

    Unsolved 17 Mar 2025, 03:46
    0 Votes
    4 Posts
    130 Views
    Are you in the case described in the second note of the signal documentation ?
  • Rename buttons in FileDialog

    Unsolved 21 days ago
    0 Votes
    2 Posts
    67 Views
    Hi @Mihaill, I would say with the acceptLabel property This property holds the label text shown on the button that accepts the dialog. When set to an empty string, the default label of the underlying platform is used. The default label is typically Open or Save depending on which fileMode the dialog is used in.
  • Setting a QML property to undefined via JavaScript

    Unsolved 22 days ago
    0 Votes
    2 Posts
    79 Views
    After poking around some more, I think the error message may be referring to the vert[i] object as being undefined, not the value I'm trying to feed it. But my vert object works otherwise, and I can change the color on it using similar syntax, so it should be valid. Also, when I do a typeof(vert[i]), I get something along the lines of Vertex_QMLTYPE_3(0x6000003b82a0) I get the same thing if I say console.log(vert[i]). That suggests to me that my object is valid. The verts are created dynamically, and they are created from the following .qml file, using these commands: var component = Qt.createComponent("Vertex.qml"); var vertex = component.createObject(parent, {x: xPos, y: yPos, width: size, color:"yellow"}); import QtQuick Rectangle { width: 8 height: 8 color: yellow property string tag: "" MouseArea { anchors.fill: parent drag.target: undefined drag.smoothed: false onReleased: { polyCanvas.requestPaint() } } } Please let me know if you've got something... bc
  • Add column header to TreeView

    Unsolved 16 Jun 2022, 10:49
    1 Votes
    4 Posts
    481 Views
    I think this is solved. GrecKo's suggestion is works well. you can start from the example 'QT Quick Controls - table of contents'. modify Main.qml like below Item{ // added component anchors.fill: parent HorizontalHeaderView { // added component id: horizontalHeader anchors.top: parent.top anchors.left: treeView.left syncView: treeView model: ["title", "content"] clip: true } TreeView { id: treeView //anchors.fill: parent // anchoring is modified anchors.top: horizontalHeader.bottom anchors.left: parent.left anchors.right: parent.right anchors.bottom: parent.bottom anchors.margins: 10 clip: true
  • 0 Votes
    3 Posts
    104 Views
    @KH-219Design Thanks i will try that. I also saw that in another thread you mentioned, that its possible to write your own QtMessageHandler and filter qml warnings. https://forum.qt.io/topic/151653/is-there-any-way-to-suppress-qml-warnings I will try that too, but i guess there is nothing like this for compiler warnings.
  • Strategy for handling exceptions in property accessors

    Unsolved 26 days ago
    0 Votes
    4 Posts
    201 Views
    I was about to suggest adding an explicit decorator to the functions that "misbehave". I would however not decorate all properties blindly so it can also serve as documentation to avoid getting the same issues in the future.
  • QML app freezes for a bit after deactivating Loader3D

    Unsolved 27 days ago
    0 Votes
    1 Posts
    63 Views
    No one has replied
  • QML TreeView

    Unsolved 2 Apr 2019, 10:09
    0 Votes
    6 Posts
    2k Views
    @chapayev I know nothing about QML. Your code looks to me as though it handles expansion/contraction, and subitems? Are you saying this addresses the OP's question The representation requires that rows have to be displayed differently - for example some rows have a checkbox some dont. ?
  • how to make water ripple (circles)

    Unsolved 28 days ago
    0 Votes
    2 Posts
    74 Views
    Here How You Can Do With Animation Method Rectangle { width: radius * 2 height: radius * 2 color: "rgba(255, 255, 255, 0.4)" radius: width / 2 anchors.centerIn: parent // Animation to expand the ripple NumberAnimation { target: parent property: "radius" from: 0 to: 100 duration: 1000 loops: Animation.Infinite easing.type: Easing.OutElastic } }
  • How to fix height and width of filedailog in qml.

    Unsolved 15 May 2024, 10:18
    0 Votes
    4 Posts
    181 Views
    You're right — my earlier response was focused on QFileDialog from Qt Widgets, but the OP is indeed asking about QML's FileDialog. If the OP needs full control over the size or wants to add a background overlay, the alternative would be to create a custom file browser UI in QML using FolderListModel, ListView, and other controls instead of relying on FileDialog. Thanks again for pointing this out!
  • import marble in qml qt

    Unsolved 11 Jan 2025, 06:09
    0 Votes
    2 Posts
    120 Views
    Step 1: Verify Marble Installation ls /usr/lib/qml/org/kde/marble Step 2: Check Where Marble Installed Its QML Module find /usr -type d -name "org.kde.marble" find /usr/local -type d -name "org.kde.marble" Step 3: Manually Add QML Import Path // Set additional import path for QML modules engine.addImportPath("/usr/local/lib/qml"); // Adjust if necessary in main.cpp Step 4: Verify Installed Marble Libraries ldd /usr/local/lib/libmarblewidget-qt5.so If any dependencies are "not found", you might need to add /usr/local/lib to your library path: sh Copy Edit export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH Step 5: Try Importing Again in QML import org.kde.marble 0.20 // Change version based on installed version
  • How to place inside flickable other components

    Unsolved 25 Oct 2024, 06:16
    0 Votes
    2 Posts
    143 Views
    There’s nothing wrong with your current code — you are already doing it right. The documentation is just warning you not to accidentally anchor to flick.
  • Could i bind my QSharedPoint<QObject> to QtQuick Item property?

    Unsolved 28 days ago
    0 Votes
    1 Posts
    48 Views
    No one has replied
  • macdeployqt dmg references with links

    Unsolved 29 days ago
    0 Votes
    1 Posts
    44 Views
    No one has replied