Qt: C ++ dynamic parameter GUI for plugin parameters

My Qt-based application expands through plugins ( http://doc.qt.io/archives/4.6/plugins-howto.html#the-lower-level-api-extending-qt-applications ).

These plugins may have their own parameters. (int, double, String, enumerations..etc)

What I want to do is define these parameters in XML and dynamically generate a graphical interface by parsing the XML file.

I found a somewhat similar architecture here - http://www.slicer.org/slicerWiki/index.php/Slicer3:Execution_Model_Documentation#Slicer3_GUI_Generation

Is there any library / framework that I can use with Qt for this. Or I need to manually write my own code from XML parsing, mapping parameters in Maps, generating a GUI that validates the XML element ... etc

Any tips?

+3
source share
7 answers

I needed to do something similar a year ago; Found nothing to make it easier and faster ( link ). I can not share it, I'm afraid. Your role.

Obviously, but I did the reverse XML generated by Designer and created some interfaces to regenerate common XML blocks. Keep in mind that XML may change in later versions of Qt, and I had unit tests to validate my own XML.

+4

*.ui, . XML-. QtUiTools.

+4
+3

Qt , , . , . , XML .

+1

, QML.

+1

, QScript, , .

0
source

Source: https://habr.com/ru/post/1784678/


All Articles