libRoseQtWidgets.so and create the widgets yourself.Usage example:
#include "ui_UiFile.h" ... { Ui::NameFromQtDesigner uiObject; QWidget * myWidget = new QWidget(); uiObject.setupUi(myWidget); // Access to a subwidget: uiObject.myButton->setText("NewCaption"); }
The created widget can easily be added to a QRose Window.
QRWindow * window = new QRWindow (); (*window)["WindowTitle"] << myWidget;
Usage example:
QUiLoader loader;
QFile fileStream("myUiFile.ui");
fileStream.open(QFile::ReadOnly);
QWidget * loadedWin = loader.load(&fileStream);
// Access to a subwidget:
QPushButton * myButton = loadedWin->findChild<QPushButton*>("NameOfButton");
myButton->setText("NewCaption");
Warning: On some architectures there may be problems with the initialization of static variables in the dynamic loaded lib. So there a crash when using NodeInfoWidget to display file information which is stored in static vars in librose.
1.4.7