Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • Where did Settings QML type go in 6.2?

    Unsolved
    3
    0 Votes
    3 Posts
    363 Views
    C
    Ah - figured this out. The pypi dist for PySide6 includes Qt C++ shared libs and the Qt.labs.settings QML type. venv/lib/python3.8/site-packages/PySide6/Qt/lib/libQt6LabsSettings.so.6 And just to make life difficult the pypi PyQt6 dist does not.
  • QML: Shape-Shifting Delegates with GridView

    Unsolved
    1
    0 Votes
    1 Posts
    160 Views
    No one has replied
  • Canvas redraw immediately

    Unsolved
    1
    0 Votes
    1 Posts
    208 Views
    No one has replied
  • Problems with QImageIOHandler and Image in QML Qt6

    Unsolved
    2
    0 Votes
    2 Posts
    163 Views
    SGaistS
    Hi and welcome to devnet, For number 3, a 7Mb jpeg file is its place on the disk. In order to show its content on screen it must first be uncompressed and that size can change quite a lot. As for your other issues, do you something specific that requires some help ? This is a user forum, if you have some specific bug and a way to reproduce it, then the bug tracker would be the right place to report it.
  • learn Qt Quick & QML

    Unsolved
    4
    0 Votes
    4 Posts
    536 Views
    Volodymyr14V
    #python #qt #qml #pyqt #pyside #sql #nosql The best book for developers who want to learn Qt for Python! Python, Qt, and C++ with examples. QML and Qt Quick with examples. PyQt and PySide with examples. Graphics, Graphical Effects, and Multimedia. Working with Databases (SQL, NoSQL). Signals, slots, and event handlers with examples. Threading and Multiprocessing in examples of large-scale constructions. Only by the following link is available the original PDF book "Hands-on Qt for Python Developers" from the original Author, and only here for $3 (Crypto is available): https://workwith.pythonanywhere.com/buy_book
  • No supported platforms for Qt Quick

    Unsolved
    2
    0 Votes
    2 Posts
    307 Views
    leenamiettinenL
    The mechanism for showing that information seems to be broken somehow. However, it is just information to help you pick a wizard template that generates a project that you can build for a specific platform. It not being shown does not mean that you cannot build your app for Android. Did you try clicking the Run button to build and run your project for Android? Your settings look good to me. Here you can find some more information about the project wizard templates and using Qt Creator to develop apps for Android devices: https://doc.qt.io/qtcreator/creator-project-creating.html https://doc.qt.io/qtcreator/creator-running-targets.html https://doc.qt.io/qtcreator/creator-mobile-platforms.html#android
  • 0 Votes
    3 Posts
    889 Views
    S
    @arun-holoplot thanks for the Replay I am new Qt/Qml could you provide any example for wrap it inside a QObject subclass with Q_PROPERY's and use only one role and return that object from the model class in data() if i am loading dynamic data Qlist which method will be the fastest method to get the Data in qml (intract QML with each role or QObject subclass with Q_PROPERY's with one role) note:- if have more than 15 roles
  • How to access Qlist of structure elements in QML

    Unsolved
    1
    0 Votes
    1 Posts
    238 Views
    No one has replied
  • Query: How to design single UI binary to support multiple resolutions

    Solved
    3
    0 Votes
    3 Posts
    319 Views
    P
    @jsulm Thank you for your information
  • Issue with fonts in Qt 5.15.1

    Solved
    2
    0 Votes
    2 Posts
    358 Views
    P
    The fix is in graphics driver. Please refer below link for more information on the graphics driver https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1060753/am4378-flickering-issue-on-qt-with-eglfs-instance
  • QML show Text and gif in QML Text Element like weibo

    3
    0 Votes
    3 Posts
    1k Views
    L
    @cuongkjm You could simply make a Row and use the AnimatedImage in the center: Row { spacing: 5 Text{ id: text anchors.verticalCenter: parent.verticalCenter text: "Qt Project is very useful" } AnimatedImage { anchors.verticalCenter: parent.verticalCenter height: text.height * 2.5 fillMode: Image.PreserveAspectFit source: "https://doc.qt.io/qt-5/images/pathview.gif" } Text{ anchors.verticalCenter: parent.verticalCenter text: "I like it very much" } }
  • 0 Votes
    1 Posts
    241 Views
    No one has replied
  • Multiline labels or word wrap for BarCategoryAxis labels

    Solved charts wordwrap qml labels
    3
    0 Votes
    3 Posts
    794 Views
    MarkkyboyM
    Making the width and height of ChartView the same size as the project window (640x480) allows the text to display in full. Assuming you're not restricted on the size of your ChartView of course. [image: 0f6ba03a-3069-498a-9dbb-80d552b4aa9e.PNG]
  • QML Scene not repainting

    Unsolved
    3
    0 Votes
    3 Posts
    429 Views
    fcarneyF
    For dynamic objects look into Repeater and views with delegates. For non-item based objects look into Instantiator. A lot of the views are more efficient if all of the Items you create are not visible at the same time. The advantage of these is they can all work from a model object from either QAbstractListModel (and other abstract models) or ListModel. I use Repeater to show items on a map.
  • Unable to add networksettings module in pro file

    Solved
    5
    0 Votes
    5 Posts
    588 Views
    R
    Thanks for the support.
  • 0 Votes
    9 Posts
    7k Views
    S
    @Kofr I am stuck into a similar problem, Can you by any chance provide the working code where the TreeView(with parent-child relation) is editable too? Considering that this post was really long back, but it will be a huge help if the code (completed with the qml and C++ too) is provided! Thanks in advance!
  • Simple ListModel example

    Solved
    2
    0 Votes
    2 Posts
    249 Views
    U
    @qcoderpro said in Simple ListModel example: What have I forgotten to set that nothing is shown here, please? Hi, you are missing a view and delegate to display the model data. Have a look at https://doc.qt.io/qt-5/qtquick-modelviewsdata-modelview.html I also quickly added a simple ListView with Rectangle delegate to your example: import QtQuick Window { width: 640 height: 480 visible: true title: qsTr("Hello World") ListModel { id: personModel ListElement { name: "Bill Smith" number: "555 3264" } ListElement { name: "John Brown" number: "555 8426" } ListElement { name: "Sam Wise" number: "555 0473" } } ListView { anchors.fill: parent model: personModel delegate: Rectangle { width: 200 height: 20 color: index % 2 ? "lightblue": "white" Text { id: nameText text: name + ": " + number anchors.fill: parent } } } } Regards, Ulrich
  • Create ring circle with animation

    Unsolved
    4
    0 Votes
    4 Posts
    509 Views
    U
    Hi, let me propose more sophisticated way to achieve this. Create a ring object dynamically to the desired position and run animation on opacity and size inside that component. Once the animation is completed, destroy the object. The lifetime of the ring object is then handled automatically and more declarative way. Here's example code: import QtQuick 2.15 import QtQuick.Window 2.15 Window { id: root width: 640 height: 480 visible: true title: qsTr("Hello World") MouseArea { anchors.fill: parent onClicked: ringComponent.createObject(root, {originX: mouse.x, originY: mouse.y}) } Component { id: ringComponent Rectangle { id: ring property int originX: 0 property int originY: 0 color: "transparent" border.color: "red" border.width: 5 x: originX - width/2 y: originY - height/2 height: width radius: width / 2 NumberAnimation on width { from: 0 to: 100 duration: 500 running: true } OpacityAnimator on opacity { from: 1 to: 0 duration: 500 onStopped: ring.destroy() } } } } Regards, Ulrich
  • How to show 3D real buildings in QML maps

    Unsolved
    1
    0 Votes
    1 Posts
    349 Views
    No one has replied
  • ListView example

    Unsolved
    4
    0 Votes
    4 Posts
    413 Views
    GrecKoG
    Do you read the doc? https://doc.qt.io/qt-6/qml-qtquick-listview.html#currentIndex-prop