qtxamlqt4gladewxglade

Does Qt have a "XAML-like" markup-based GUI creation?


WPF uses XAML. Gtk has GladeXML, and associated tooling.

Does something similar exist for Qt?

Just to clarify: I'm asking about runtime loading of a UI from a markup file. XML/YAML/JSON, etc.

Thank you


Solution

  • The .ui files created by Qt's Designer application can be loaded at runtime for a dynamic UI. It will allow the UI to be changed, but it doesn't allow state information like QML does. Also, if you want to do much with the UI, you need to know some information about the widgets in the .ui file.