Integrate Wt into Qt Creator. How can I change the Qt UI designer parser to make Wt a
0 down vote favorite
I want to know if is possible to change the way how the Qt Ui Designers create the C++ code.
For example when I add a pushbutton to the Ui this is converted to
Code:
pushButton
->setObjectName
(QString::fromUtf8("pushButton"));
pushButton
->setGeometry
(QRect(70,
90,
97,
27));
{
An I want that the Qt Ui Designer parser convert this text into the next one
Code:
pushButton = new Wt::WPushButton("Some Text",root());
Re: Integrate Wt into Qt Creator. How can I change the Qt UI designer parser to make
In Qt Creator you can "morp" any widget to others similar. In this case you can add a QPushButton and morph to Wt::WPushButton.
but I do not think that's enough, actually what is needed to create a custom patcher for the output file designer, manually convert the XML to c++ code.
Morphing widgets in designer and then parser the XML file. I see this approach in una project, generate the UI in Qt Designer and the parse to generate java code.
this link contain the format of the UI XML file UI XML format
Re: Integrate Wt into Qt Creator. How can I change the Qt UI designer parser to make
Wt is not a drop-in replacement for Qt. You would need to provide your own version of uic that generated different code and then tell QMake to use it in place of the real uic (see QMAKE_UIC) variable. You'd also need to provide you own Designer plugins to provide the Wt widgets and their properties, which are not the same as similar Qt widgets.