Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • Drag and Drop QStandardItemModel in QML

    Unsolved
    3
    0 Votes
    3 Posts
    427 Views
    S
    can someone help me, pls
  • Problem with using components between files

    Solved
    2
    0 Votes
    2 Posts
    166 Views
    eyllanescE
    There is already a component called Animation so your component is crashing, try changing the name of your component.
  • What am i missing in my loader code

    Unsolved loader rowlayout component
    2
    0 Votes
    2 Posts
    489 Views
    M
    Hey, If this is a direct copy of your code there is a few typos.. id name needs to be id:name. Also you cannot link your customrowlayout alias to the item reference which is outside your custom component.. "Unlike an ordinary property, an alias has the following restrictions: It can only refer to an object, or the property of an object, that is within the scope of the type within which the alias is declared. It cannot contain arbitrary JavaScript expressions It cannot refer to objects declared outside of the scope of its type. The alias reference is not optional, unlike the optional default value for an ordinary property; the alias reference must be provided when the alias is first declared. It cannot refer to attached properties. It cannot refer to properties inside a hierarchy with depth 3 or greater. " Look here: https://doc.qt.io/qt-5/qtqml-syntax-objectattributes.html#property-aliases So you need to do it like this, or simlar :) Item{ id:item Component { id:componentRow Row { id:someRow Rectangle { width:500 height:20 color:"#ff1111" property Item context:item Text { anchors.horizontalCenter: parent.horizontalCenter text: "Some text.." } } } } Loader{ id: loaderr sourceComponent:componentRow } }
  • overriding Keys.onRightPressed

    Unsolved
    1
    0 Votes
    1 Posts
    162 Views
    No one has replied
  • QML Map set min/max longitude latitude

    Unsolved
    7
    0 Votes
    7 Posts
    941 Views
    M
    @patrikd I have been trying to search the docs for any way to do this easily and with gestures. But I am only able to do this easily with MouseArea. I think you would need to use the map plugin you reffered in the link, which is also available in Qt if you'd want to do this with as few lines of code as possible. https://doc.qt.io/qt-5/location-plugin-mapboxgl.html
  • how to align Listview header items with content position

    Solved
    3
    0 Votes
    3 Posts
    793 Views
    S
    I used ListView { id : listView header { Image { x: listView.currentItem.x_.x } Image { x: listView.currentItem.y_.x } Image { x: listView.currentItem.z_.x } // ... } where x_,y_, z_ are delegate items in this example
  • Cannot start QML apps from Remote desktop connection

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    KroMignonK
    @Uday-More said in Cannot start QML apps from Remote desktop connection: Where should this dll and environment be set ? In the remote machine or the local machine. This DLL must be on the machine which runs the application ==> so the remote one. And you should find the DLL in the Qt Kit bin directory ==> C:\Qt\5.7.xx\msvcXXX\bin\ But I would suggest you to switch you application to Qt 5.14 (if you can), so you could use Direct3D11 as backend, which, I think, will better supported by MS RemoteDesktop.
  • RowLaoyut reload/refresh after dynamic anchoring

    Unsolved layout anchoring dynamic
    1
    0 Votes
    1 Posts
    341 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Remove and update model in listView

    Unsolved
    2
    0 Votes
    2 Posts
    337 Views
    M
    marco_88 less than a minute ago I resolved replaced model.set with these 2 lines: model.insert(indexWeekday, {"weekday": weekday, "attributes": day}) model.remove(indexWeekday + 1) I don't know if this code is clear and if it is a good way for update model. I insert day row correctly on correct index sometimes I remove a period, and after remove next index, that is old day duplicated. Thanks
  • Can ListView have resizable columns? Or is this what TableView is for?

    Unsolved
    2
    0 Votes
    2 Posts
    189 Views
    fcarneyF
    According to this I would have to dive into C++ for this. That is fine I can do that. Just create an adapter for my file model.
  • Swipe View showing more than one page

    Solved
    2
    0 Votes
    2 Posts
    671 Views
    T
    I've found solutionlink text [image: 27c2a302-9409-4610-a089-2864be5b8e54.png]
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Slow ComboBox with large data

    Unsolved
    6
    0 Votes
    6 Posts
    905 Views
    ekkescornerE
    @ed_robcont_ I would use a Popup with ListView to provide something similar to your large ComboBox
  • Access QVector<type> from QML

    Unsolved qml qtquick qvector
    3
    0 Votes
    3 Posts
    1k Views
    R
    @raven-worx Thank you for this answer. In fact I already found this example but wouldn't this be a problem if my Person class is in a vector?
  • The specified module could not be found.

    Unsolved
    2
    0 Votes
    2 Posts
    632 Views
    jsulmJ
    @Lingeswararaj said in The specified module could not be found.: E:/QtApplication/QML-appNew/deployment/release/mg/sys/SystemPlugin.dll Did you check whether this DLL exists in this location?
  • QML resource not loading

    Unsolved
    1
    0 Votes
    1 Posts
    169 Views
    No one has replied
  • How to get coordinate of the TextArea current selection text?

    Unsolved
    1
    0 Votes
    1 Posts
    132 Views
    No one has replied
  • How to provide my own certificate for XMLHttpRequest?

    Unsolved
    3
    0 Votes
    3 Posts
    338 Views
    B
    @SGaist Sorry, I'm so used to getting notifications when somebody answers that I missed your post. Many thanks for suggestion. I need to try it out as soon as possible.
  • How to access JSON web services from QML

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    fcarneyF
    @sandro4912 Maybe this is a better resource.