Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[solved] something like oncreate: running code at the startup of an application
howto run C++ code at the start ?
task_struct last edited by
just put it in your main() function.
This works fine.
Does it makes sense to use a reference to mainWindow.setup1() (my funcion is called setup1) which is declared in the header (void setup1();) and defined in the mainwindow.cpp instead of directly writing it into the main.cpp?
worked fine now, solved.