Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • QMLDIR and Singleton

    Unsolved
    1
    0 Votes
    1 Posts
    195 Views
    No one has replied
  • Resizing of QQuickView very slow and flickering

    Solved
    4
    2 Votes
    4 Posts
    4k Views
    R
    @penpen said in Resizing of QQuickView very slow and flickering: I've found some solution that is not perfect but muche better than default behavior QSurfaceFormat format; format.setSwapInterval(0); format.setRenderableType(QSurfaceFormat::OpenGL); view.setFormat(format); Ho, i have the same problem and the same GPU: 1060 6gb. Some solution?
  • Custom options from Qml Image to a custom ImageFormat

    Unsolved
    4
    0 Votes
    4 Posts
    383 Views
    fcarneyF
    Another route is creating a custom image provider. With that you choose how to interpret the end of the url. The data will be provided to the Image item via a handler.
  • Edit TableView Content from other QML File

    Unsolved
    1
    0 Votes
    1 Posts
    209 Views
    No one has replied
  • How to read an external file?

    Unsolved
    6
    1 Votes
    6 Posts
    771 Views
    K
    @HenkKalkwater thank you a lot. It works perfectly. [image: 8e7d0226-676f-445b-b628-1f1edab57c6b.jpg]
  • What is the difference between delete and deleteLater

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    W
    Oh, I know! thanks! When I used delete, some signals/slots were not nicely handled. Thank you, both of you.
  • CircularGauge needle Z order

    Unsolved
    1
    0 Votes
    1 Posts
    177 Views
    No one has replied
  • QtMultimedia 5.8 Does not record on Raspberry - Stretch

    Unsolved
    12
    0 Votes
    12 Posts
    1k Views
    SGaistS
    One possible thing to do is rebuild the backend (and just the backend not the whole of Qt)
  • What unit of measurement does the "distance" role provide in PlaceSearchModel?

    Unsolved
    1
    0 Votes
    1 Posts
    117 Views
    No one has replied
  • How can I draw shadow on ShapePath?

    Unsolved
    2
    0 Votes
    2 Posts
    296 Views
    fcarneyF
    https://doc.qt.io/qt-5/qml-qtgraphicaleffects-dropshadow.html The path has to be drawn some how for this to work I think.
  • 0 Votes
    8 Posts
    2k Views
    KroMignonK
    @HenkKalkwater said in QML: QMetaProperty::read unable to handle for some enums defined in C++, but not all: Anyways, a huge thank you for your help. I´ve been stuck on this for about 2 days. Your welcome, I am glad I could help you :)
  • Issue with passing a QFlag specialization to QML

    Unsolved
    1
    0 Votes
    1 Posts
    283 Views
    No one has replied
  • Property Binding not updating after signal emitted

    Solved
    12
    0 Votes
    12 Posts
    2k Views
    B
    @J-Hilk Thank you, the singleton approach works very well. I have created two functions *Messagging::instance()and *Messaging::qmlInstance(QQmlEngine *engine, QJSEngine *scriptEngine) and registered the second one as Singleton in my main file: Messaging *Messaging::instance() { if (m_pThis == nullptr) { m_pThis = new Messaging; } return m_pThis; } QObject *Messaging::qmlInstance(QQmlEngine *engine, QJSEngine *scriptEngine) { Q_UNUSED(engine); Q_UNUSED(scriptEngine); return Messaging::instance(); } Now, the same instance can be used in all other classes to edit variables and update GUI elements accordingly with e.g. Messagging *messageService = Messagging::instance(); messageService->setMessageText("xyz");
  • How to make blur effect in qt 6 ?

    Solved
    3
    0 Votes
    3 Posts
    559 Views
    SGaistS
    Hi and welcome to devnet, Go with Qt 6.1 as the graphical effects module is back in that version.
  • How to deal with Qt Quick 2 Extension Plugin inside Project Dir?

    Unsolved
    1
    0 Votes
    1 Posts
    217 Views
    No one has replied
  • Using a function to generate a string for text:

    Solved
    2
    0 Votes
    2 Posts
    212 Views
    SeDiS
    Replying to myself. The simple solution is not to use "function", but to just write the JS code in curly brackets. Didn't know that's even legal... text: { switch (lockKey.mode) { case first: return "First option"; case second: return "Second option"; case third: return "Third option"; default: return "Default option"; } } Sorry for the noise. I'll leave this for those searching for the error message (as I did).
  • How to set two color rectangle

    Unsolved
    4
    0 Votes
    4 Posts
    608 Views
    sierdzioS
    All of my previous suggestion support the case when color rectangles are not equal. It's up to the implementation to handle it.
  • Release memory from QAbstractItemModel

    Unsolved
    6
    0 Votes
    6 Posts
    698 Views
    JonBJ
    @manny_lp said in Release memory from QAbstractItemModel: qDeleteAll also does not help. ? What exactly is your issue? (Apart from the fact that you don't seem to actually call ListModel::clearItems())?
  • QML: why multi lines 'PlatformInputContext::update()' displayed in debug output

    Unsolved
    1
    0 Votes
    1 Posts
    150 Views
    No one has replied
  • QQuickImageProvider for RichText <img src=image://imageprovider ...>

    Unsolved
    2
    0 Votes
    2 Posts
    278 Views
    eyllanescE
    @Witzgy A workaround could be to pass the size through the url, something like image://colors/red?width=60&height=60, and in the provider obtain the size of the "id".