i think time isnt problem here.
ui(new Ui::ka)
{
ui->setupUi(this);
QTimer::singleShot(1000,
this,
SLOT(quit
()));
go();
}
ka::ka(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ka)
{
ui->setupUi(this);
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
QTimer::singleShot(1000, this, SLOT(quit()));
go();
}
To copy to clipboard, switch view to plain text mode
it waits a few sec, do go(); function, a then shows ui
and i dont know how to use showEvent...
ui(new Ui::ka)
{
ui->setupUi(this);
go();
}
ka::ka(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ka)
{
ui->setupUi(this);
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
QWidget::showEvent(this);
go();
}
To copy to clipboard, switch view to plain text mode
I tried like that but it dosnt work.
thanks for helping...
Bookmarks