Qt:C ++动态参数GUI的插件参数 [英] Qt : C++ dynamic parameter GUI for plugin parameters

查看:124
本文介绍了Qt:C ++动态参数GUI的插件参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的基于Qt的应用程序可通过插件扩展( http://doc.qt.io/archives/4.6/plugins-howto.html#the-lower-level-api-extending-qt-applications )。

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

这些插件可以有自己的参数。(int,double,String,enumerations..etc)

These plugins can have its own parameters.(int,double,String, enumerations..etc)

在一个XML中定义这个参数,并通过解析XML文件动态生成GUI。

What I want to do is, define this parameters in an XML and generate the GUI dynamically by parsing the XML file.

我在这里发现了一些类似的架构 - http://www.slicer.org/slicerWiki/index.php/Slicer3:Execution_Model_Documentation#Slicer3_GUI_Generation

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

是否有任何库/框架可以用于Qt for this.Or我必须手动编写我自己的代码从解析XML,映射参数到地图,生成GUI检查XML元素... etc

Is there any library/framework that I can use with Qt for this.Or do I have to manually write my own code from parsing XML,mapping parameters into Maps , generate GUI checking the XML element...etc

任何提示?

推荐答案

p>您可以通过编程方式创建 *。ui 文件,请参阅 XML模式。然后,您可以使用 QtUiTools 即时呈现这些内容。

You can programmatically create *.ui files, see the XML schema. Then you can render them on the fly with QtUiTools.

这篇关于Qt:C ++动态参数GUI的插件参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆