Adding inheritance to an object developed by Qt

I have a problem and I want to implement the MVC pattern for my QT application, so I need, for example, to inherit in my QTableWidget about another class, for example

myClass
{
    myMethod();
}

but our QTableWidget is contained in our Mainwidows, which is developed by the QT designer and generates the ui_MainWindow class!

Do you know how to do this?

Is this a method inside Qt Designer for this? or another method?

Thanks for your reply!

+3
source share
1 answer

QDesigner. , -, , "...". include, .

Qt MVC , QTableView, QTableWidget, QTableView QAbstractItemModel , , . / @Nokia

+7

Source: https://habr.com/ru/post/1738550/


All Articles