How to move the definitions from mainwindow.cpp to mainwindow.h?
-
I want to define the
class MainWindowas a template class, but I cannot move the definitions of its functions tomainwindow.hbecause of the forward declaration ofnamespace Ui { class MainWindow; }. How to achieve such a thing? Appreciate any help or suggestions -
Find a different approach. QObject classes cannot be templated, so it won't work even if you solve
namespace Uiproblem. -
Find a different approach. QObject classes cannot be templated, so it won't work even if you solve
namespace Uiproblem. -
@sierdzio said in How to move the definitions from mainwindow.cpp to mainwindow.h?:
QObject classes cannot be templated
Could you say a few more words about this, please?