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
pushButton
->setObjectName
(QString::fromUtf8("pushButton"));
pushButton
->setGeometry
(QRect(70,
90,
97,
27));
{
pushButton = new QPushButton(centralWidget);
pushButton->setObjectName(QString::fromUtf8("pushButton"));
pushButton->setGeometry(QRect(70, 90, 97, 27));
void retranslateUi(QMainWindow *MainWindow)
{
pushButton_2->setText(QApplication::translate("MainWindow", "hola", 0, QApplication::UnicodeUTF8));
To copy to clipboard, switch view to plain text mode
An I want that the Qt Ui Designer parser convert this text into the next one
pushButton = new Wt::WPushButton("Some Text",root());
pushButton = new Wt::WPushButton("Some Text",root());
To copy to clipboard, switch view to plain text mode
Bookmarks