Hi, thank you for your help! This is how I got it to work. Also I don't know how to change the title of the thread to [solved] lol
void mainwindowWing::delay()
{
while (QTime::currentTime() < dieTime
) }
mainwindowWing
::mainwindowWing(QWidget *parent
) : ui(new Ui::mainwindowWing)
{
ui->setupUi(this);
delay();
QTimer::singleShot( 0,
this,
SLOT( setupGUI
()) );
}
void mainwindowWing::delay()
{
QTime dieTime= QTime::currentTime().addMSecs(1);
while (QTime::currentTime() < dieTime)
QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
}
mainwindowWing::mainwindowWing(QWidget *parent) :
QWidget(parent),
ui(new Ui::mainwindowWing)
{
ui->setupUi(this);
delay();
QTimer::singleShot( 0, this, SLOT( setupGUI()) );
}
To copy to clipboard, switch view to plain text mode
Bookmarks