I'd like to user a user-defined class rather Qt's generated in the Ui_MainWindow
class so that I can use that control on Qt's GUI Designer. For example, currently it's defined as this:
class Ui_MainWindow
{
public:
QPlainTextEdit *list;
// ...
};
I'd like to use my user-defined class:
class Ui_MainWindow
{
public:
MyCustomQPlainTextEdit *list;
// ...
};
I cannot just modify it by hand in the ui_mainwindow.h header file because that value will be lost every time the GUI designer generate its metadata. Can I prevent Qt to use that class so that I can use my own?