Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
[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.