Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • MediaPlayer on iOS stops when playing other sounds

    Unsolved
    1
    0 Votes
    1 Posts
    137 Views
    No one has replied
  • GPU Memory leaks when redo update custom QQuick3DGeometry

    Solved
    4
    0 Votes
    4 Posts
    487 Views
    K
    @jsulm I reported it just now. https://bugreports.qt.io/browse/QTBUG-100159
  • How to paint a QML custom component in Qt Design preview

    Unsolved
    1
    0 Votes
    1 Posts
    142 Views
    No one has replied
  • Unable to access Q_PROPERTY for QML_SINGLETON object.

    Solved
    3
    0 Votes
    3 Posts
    256 Views
    M
    Thank you very much. It works fine now.
  • mapping dynamic points on a map

    Solved qml qml map geocoordinate
    3
    0 Votes
    3 Posts
    666 Views
    K
    Finally found MapItemView which does what I am searching for.
  • 0 Votes
    2 Posts
    323 Views
    V
    Taken directly from the 5.15.8 docs for DisplaySettings: ========================================== Detailed Description There is no need to create an instance of this object. To use it, simply import the QtDeviceUtilities.DisplaySettings module. ========================================== But where is it? Why does it not exist for Windows? We have a commercial license. Where is this documented functionality? What is required to insure that the install of Qt that we are using includes the required library/module? In an operating room, setting the brightness is a very valuable capability. And, yes, I know what a singleton is, having created numerous singletons for this project.
  • This topic is deleted!

    Solved
    2
    0 Votes
    2 Posts
    42 Views
  • How to extend qml containers (Row or Column) in another file

    Solved row qtquick
    4
    0 Votes
    4 Posts
    716 Views
    GrecKoG
    It's documented in the QML Reference : https://doc.qt.io/qt-5/qtqml-syntax-objectattributes.html#property-attributes
  • This topic is deleted!

    Solved
    3
    0 Votes
    3 Posts
    106 Views
  • undefined reference to library function in Qtcreator

    Unsolved
    2
    0 Votes
    2 Posts
    796 Views
    jsulmJ
    @Narahara said in undefined reference to library function in Qtcreator: And I use a library developed by Visual Studio 201 Is this library a C++ library? If so then you have to use compiler from Visual Studio 2013 to build your app, because you can't mix binaries compiled with different compilers.
  • project.exe does not launch

    Solved qtquick qml windows 10
    3
    1 Votes
    3 Posts
    781 Views
    J.HilkJ
    @RLocksley said in project.exe does not launch: windeployqt project.exe if that is the whole command you used, that you missed the --qmldir parameter https://doc.qt.io/qt-5/windows-deployment.html
  • Zooming OrthogonalCamera in QtQuick 3D

    Unsolved
    1
    0 Votes
    1 Posts
    225 Views
    No one has replied
  • Use QZXing in qml

    Solved
    13
    0 Votes
    13 Posts
    6k Views
    lukas_kosinskiL
    @ekkescorner I worked on that and now it supports much more formats. Currently it's a PR opened, but it should be soon merged: https://github.com/scytheStudio/SCodes/pull/11 Sorry that I add the comment to a quite old post. I simply wanted people to know it and not be misled.
  • Drag and Drop to desktop or file manager

    Unsolved
    2
    0 Votes
    2 Posts
    546 Views
    S
    Replying here just because it's the first hit on google for Drag.Automatic: there is an answer to this question here: https://stackoverflow.com/questions/24532317/new-drag-and-drop-mechanism-does-not-work-as-expected-in-qt-quick-qt-5-3. In short, you should replace Drag.active: mouseArea.drag.active by property bool dragActive: mouseArea.drag.active onDragActiveChanged: { if (dragActive) { Drag.start(); } else { Drag.drop(); } } More details in the SO post, apparently you can see the different code flows in the QQuickDrag code. Note that Drag.Automatic does work as expected when you use a DragHandler, just not when you use a MouseArea.
  • How to create a QML ListModel from a C++ structure ?

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    fcarneyF
    If you are using this structure in other code that you don't want to change. Then I would serialize and deserialize the list. It really depends upon how interactive you want it to be. Are you planning on having the changes update in the structure based upon actions by the user? In that case I would go for a model that allows things to be updated and immediately changed in the structure. If you want to just display and update the whole thing at once you can get by using the serialize method. QML ListModel's accept javascript structures: {name: "year", value: 22} You can build this value as a QVariantList with each entry being QVariantMap. Then return QVariantList to QML. Or you can emit a QVariantMap for each member. You won't be able to get around the tedious work this involves. No matter how you do this it will a lot of copy, paste, and edit. If you are thinking of changing how you store this in your program you could store the data in a way that is easier to serialize.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    30 Views
    No one has replied
  • How to auto change the width of rectangle under Repeater

    Solved
    3
    0 Votes
    3 Posts
    837 Views
    J
    @fcarney This helped me to fix the problem
  • gif uses a lot of memory, qml

    Unsolved
    6
    0 Votes
    6 Posts
    582 Views
    Q
    @jsulm i used other gifs and any gif increments app size at least 100 mb i wanna use gif just for icon of app (just one place)
  • Change Map language in QML Map element

    Unsolved
    2
    0 Votes
    2 Posts
    301 Views
    M
    @Alisa said in Change Map language in QML Map element: MapParameter { type: "layout" property var layer: "country-label" property var textField: ["get", "name_de"] } Hi Have you found the sollution? Best Marek
  • How to use ItemSelectionModel with TableView

    Unsolved
    2
    0 Votes
    2 Posts
    724 Views
    GrecKoG
    @ocgltd said in How to use ItemSelectionModel with TableView: ItemSelectionModel.select | ItemSelectionModel.current It should be ItemSelectionModel.Select | ItemSelectionModel.Current