Pergunta

WPF usa XAML.Gtk tem GladeXML e ferramentas associadas.

Existe algo semelhante para o Qt?

Só para esclarecer: estou perguntando sobre o carregamento em tempo de execução de uma IU a partir de um arquivo de marcação.XML / YAML / JSON, etc.

Obrigado

Outras dicas

well... .ui files are .xml files

Yes there are .ui files which are in fact XML based. These files are generated by QtDesigner/QtCreator (Form designer delivered by Nokia/Trolltech). Ui files are converted to C++ code at compile time and linked with application.

So it is not possible to load them at runtime.

While .ui files are XML, these are not as declarative as the .qml files of Qt Quick (QtDeclarative Engine). The latter, in contrast is JSON-like, not XML. So the answer to the original question is: yes (functionally) and no (not XML). Personally, I think XML-based creation for humans is inferior.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top