How to move the definitions from mainwindow.cpp to mainwindow.h?
Unsolved
General and Desktop
-
I want to define the
class MainWindow
as a template class, but I cannot move the definitions of its functions tomainwindow.h
because 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 Ui
problem.