Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • How should your QML call a C++ method with result, when the operation is asynchronous?

    Unsolved
    4
    0 Votes
    4 Posts
    820 Views
    jeremy_kJ
    Add a property to the C++ context object indicating the state of the request. It sounds like this will need 2 to 4: idle - optional request in progress failed - optional succeeded / finished This allows a newly initialized UI component to learn the state of a request that was previously sent, making the interface more flexible. Making the request, or at least its parameters available through a property is also worth considering.
  • RowLayout is not a type

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    W
    Thanks for your . Yes, I miss it.
  • Create button component inside scrool view list

    Unsolved
    3
    0 Votes
    3 Posts
    377 Views
    N
    @eyllanesc tanks a looott [image: 40da468c-2164-4863-9e6e-569e2a44ef25.png]
  • Don't have QML Types in Design of Qt Quick Application

    Unsolved
    1
    0 Votes
    1 Posts
    127 Views
    No one has replied
  • Wait for dialog response

    Solved
    13
    0 Votes
    13 Posts
    9k Views
    I
    Hi, Yes it's possible. You can pass your dialog by context in the main.cpp file like that: ResetDialog* resetDialog = new ResetDialog(); engine.rootContext()->setContextProperty("resetDialog", resetDialog); and catch the result like that in the qml file: Connections{target: resetDialog; onAccepted: {console.log("I WAS ACCEPTED"); onRejected: {console.log("I was Rejected")}}}
  • Cant get the correct filepath from FileDialog in Android

    Solved
    7
    0 Votes
    7 Posts
    3k Views
    W
    Using java to solve this problem is very weird. Isn't there a true Qt/QML solution?
  • How TextArea displays gif?

    Unsolved
    5
    0 Votes
    5 Posts
    535 Views
    S
    @sierdzio Thanks!
  • Qt6 : how to use QtQuick.Control v1.4? (for the old TreeView)

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    raven-worxR
    @J-Hilk said in Qt6 : how to use QtQuick.Control v1.4? (for the old TreeView): We can't upgrade to Qt6 with all the modules that we need, and that currently aren't even all available yet Qt 6.2 comes end of the month and then catches up with the modules compared to Qt 5
  • Sending signals in QML accross thread boundaries

    Moved Unsolved
    1
    0 Votes
    1 Posts
    231 Views
    No one has replied
  • How to clear Image cache?

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    S
    @eyllanesc @KroMignon Thks. onClicked: { img.cache = false; img.source = "" img.source = "file:///Volumes/D/x.png" } In this way, the update must first set "cache=false" to work. But if set "cahce=true" after the update, the image will return to the old one.
  • QPainter Vs QPaintDevice; which one to choose?

    Unsolved
    2
    0 Votes
    2 Posts
    300 Views
    eyllanescE
    @Swati777999 What you point out is wrong. QPaintDevice is a class that is painted using QPainter, and from that class QWidget, QImage, QPixmap, etc. inherit. Please read the docs: https://doc.qt.io/qt-5/qpaintdevice.html
  • StatusBar is not a type

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    W
    Cool. I change the code according to your comments. the issue is gone/fixed. Thanks for your help. I thought when I imported the control version 2.12 "import QtQuick.Controls 2.12" , it should include all controls that come before this version. Now I realized I should import the exactly version number like what the document mentioned. In Android there is one concept like API level, It is convenience. I guess if implement the control like this will make development easier.
  • Page layout like Windows UWP App

    Unsolved
    4
    0 Votes
    4 Posts
    540 Views
    P
    Thank you very much. Now i will read and look all the links. Thank you.
  • Change the space between TextField line and text

    Solved
    4
    0 Votes
    4 Posts
    836 Views
    A
    @GrecKo thank you! That is what I was looking for!
  • 0 Votes
    6 Posts
    780 Views
    R
    @SGaist Hi, I'm trying to achieve something like this: https://youtu.be/FabJx0Bo1pg?t=226 using the incorrect tool do you mean incorrect widget?
  • QQuickPaintedItem with opaquePainting

    Unsolved
    1
    0 Votes
    1 Posts
    195 Views
    No one has replied
  • QML App stops refreshing after screen sleep

    Unsolved
    5
    1 Votes
    5 Posts
    718 Views
    Q
    Actually I tried it fast and after setting some qDebug it seems I never received the touch events. I did what is suggested in this answer : https://stackoverflow.com/a/34740261 And now I am able to get the touch events and add "QApplication::processEvents();" But there is no difference the problem is still here. With this debugging, I saw that touch event are received even when the application is in the buggued state (black screen). They seem processed as usual, because when I hit Ctrl+Alt+Suppr, and my Window reappears, I see the result of the touch event in the GUI. Some more investigation on the Windows side showed some incompatibility with the Intel Graphics Driver. The tablet is equipped with an Intel HD Graphics 620. The app works with the driver Intel Graphics Driver 23.20.16.4973, which is a "DC" driver, now called "Legacy" The bug appears with the Intel Graphics Driver 26.20.100.7637 which is a "DCH" driver introduced with the "Universal Window Platform" https://www.intel.com/content/www/us/en/support/articles/000031572/programs/intel-corporation.html Installing the "Legacy" driver on the Windows 10 Iot Tablet fixes the problem. But this is not a really good fix, at it implies to keep this driver version and does not permit updates. Are they specific known issues with QML and Intel Graphics Driver DCH ?
  • Use multiple series type for the same data

    Unsolved
    1
    0 Votes
    1 Posts
    162 Views
    No one has replied
  • 0 Votes
    3 Posts
    806 Views
    V
    @fcarney Got it thank you so much :)
  • how to access data from a delegate's component.

    Solved qt5.15.2 qml tableview tableviewcolumn delegate
    4
    0 Votes
    4 Posts
    2k Views
    sierdzioS
    The model should provide this information for you. Create a role in the model which will return the correct value for any given cell. On QML side, just access that role and display it directly. No need for any get() method (which, by the way, is called data() https://doc.qt.io/qt-5/qabstractitemmodel.html#data, not get()).