About 195,000 results
Open links in new tab
  1. qt - Embed QWidget in QML - Stack Overflow

    -1: Even if I agree with you, this does not answer the question. The question is about embedding a QWidget inside a QML scene. While it is true that it is generally better to keep the application …

  2. Declare a global property in QML for other QML files

    So if you need type checking and binding/change notify, simply declare your property as a member of the root object in your main.qml, and it will be accessible from everywhere in the …

  3. c++ - Include another QML file from a QML file - Stack Overflow

    Oct 26, 2014 · The imported QML file defines a type whose name is the same as the filename (capitalized, less the .qml suffix). QML calls the type a reuseable component. You use that …

  4. qt - How to access C++ enum from QML? - Stack Overflow

    Nov 20, 2013 · Qt also supports QML-defined enum types since Qt version 5.10. As an alternative to the C++-based answer by air-dex, you can now also use QML to create enum types: …

  5. How does QML compare two objects when compared with

    Jul 21, 2023 · My expectation was that, in QML when we compare two objects, it will return true only if they are two same objects. No. Remember that JS is quite loosely typed. The "===" …

  6. How to use qrc in c++ and QML application? - Stack Overflow

    Feb 27, 2015 · Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Try Teams for free Explore Teams

  7. How to simulate C-style "ifdef" macro in QML? - Stack Overflow

    QML is not compiled but interpreted at run time, so preprocessor directives can't be used directly by QML. But this is not a limitation, because it is possible to introduce properties to QML from …

  8. QML: How can I pass model properties to a delegate loaded inside …

    QML reports that "name" is an unknown variable inside the Text element. If I replace the name variable with a string (i.e. "hello"), it works as expected. My question is, how can I pass the …

  9. QML - Control border width and color on any one side of …

    May 14, 2013 · // CustomBorderRect.qml import QtQuick 2.12 Item { property alias color: innerRect.color property alias borderColor : borderRect.color property int borderWidth: 0 …

  10. How to pass properties to a Loader created object?

    As an alternative, you can set the width and height on the Loader object and specify the width and height in horizontalBarGauge.qml relative to its parent, i.e. the Loader object. property alias …

Refresh