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

Qt Code:
  1. pushButton = new QPushButton(centralWidget);
  2. pushButton->setObjectName(QString::fromUtf8("pushButton"));
  3. pushButton->setGeometry(QRect(70, 90, 97, 27));
  4.  
  5. void retranslateUi(QMainWindow *MainWindow)
  6. {
  7.  
  8. 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

Qt Code:
  1. pushButton = new Wt::WPushButton("Some Text",root());
To copy to clipboard, switch view to plain text mode