About 393,000 results
Open links in new tab
  1. c++ - Qt Widgets vs QML language relevance - Stack Overflow

    May 2, 2018 · Most of the guides on the internet suggest to use QML instead of Qt Widgets when it comes to dealing with graphics. What is the difference between Qt Widgets and QML? What …

  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. qt - Embed QWidget in QML - Stack Overflow

    The question is about embedding a QWidget inside a QML scene. While it is true that it is generally better to keep the application QWidget-based, you may still want to embed a …

  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 to create delay function in QML? - Stack Overflow

    Feb 14, 2015 · Since Qt/QML doesn't (currently) have async/await we can use generator/yield syntax. Online transpilers like babeljs.io can help convert async/await syntax to generator/yield …

  6. qt - Customizing QML TabButton - Stack Overflow

    May 1, 2020 · I want to customize TabButtons in QML and I couldn't find sufficient properties here. I'm able to change the font color but how can I change the the underlying line style?

  7. qt - Access C++ function from QML - Stack Overflow

    Feb 29, 2012 · As an alternative to qmlRegisterType () in main.cpp, you can also use context properties to make QObject variables available in QML. (In case you don't require to create …

  8. Difference between width/height and implicitWidth/Height

    Aug 20, 2024 · What is the difference between width / height and implicitWidth / Height in QML? When should one set the implicit dimensions instead of the regular? When should one ask the …

  9. How to do a "is_a", "typeof" or instanceof in QML?

    Dec 18, 2012 · Since Qt 5.10, you can finally use instanceOf to check whether a variable is of a certain QML type, see "QML Support for Enum and InstanceOf Type Checks". import …

  10. qt - If statement in QML - Stack Overflow

    Just remember that QML is declarative language, and you are able to write imperative code in functions or property bindings, but not in object definition.