PoziomeQ
1st November 2012, 17:47
Hi. I have a small problem.
my code:
ka::ka(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ka)
{
ui->setupUi(this);
QTextCodec::setCodecForTr(QTextCodec::codecForName ("UTF-8"));
QTextCodec::setCodecForCStrings(QTextCodec::codecF orName("UTF-8"));
QTextCodec::setCodecForLocale(QTextCodec::codecFor Name("UTF-8"));
go();
}
The function go(); is running before UI is showed but I dont want it like that.
The Ui should be show first, and then go(); should be run.
Could You help me?
Sorry for my bad english ;)
Thanks :)
my code:
ka::ka(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ka)
{
ui->setupUi(this);
QTextCodec::setCodecForTr(QTextCodec::codecForName ("UTF-8"));
QTextCodec::setCodecForCStrings(QTextCodec::codecF orName("UTF-8"));
QTextCodec::setCodecForLocale(QTextCodec::codecFor Name("UTF-8"));
go();
}
The function go(); is running before UI is showed but I dont want it like that.
The Ui should be show first, and then go(); should be run.
Could You help me?
Sorry for my bad english ;)
Thanks :)