#include <QApplication>#include "mainform.h"int main(int argc, char *argv[]){ QApplication app(argc, argv); app.setQuitOnLastWindowClosed(true); MainForm * mainWindow = new MainForm; //QWidget mainWindow->show(); app.exec(); return 0;}
MainForm::MainForm(QWidget * parent) : QWidget(parent){...;preload(); //Вот ета функция...;}
C++ (Qt)QTimer::singleShot(100, this, SLOT(preload()));