MainWindow
::MainWindow(QWidget *parent
) :{
QString windowTitle
("some good stuf here");
QMessageBox::information(this, progName, windowTitle
);
//....
//this->setWindowTitle(windowTitle); // ??? //<<<<<<<<<<<<<<<<<<<<<< Move it, after setupUi();
ledGreen.load(":/bitmap/LED-Green-20.bmp");
ledRed.load(":/bitmap/LED-Red-20.bmp");
ledDark.load(":/bitmap/LED-Dark-20.bmp");
ui.setupUi(this);
this->setWindowTitle(windowTitle); //<<<<<<<<<<<<<<<<<<<<<<Here
//....
}
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent)
{
QString windowTitle("some good stuf here");
QMessageBox::information(this, progName, windowTitle );
//....
//this->setWindowTitle(windowTitle); // ??? //<<<<<<<<<<<<<<<<<<<<<< Move it, after setupUi();
ledGreen.load(":/bitmap/LED-Green-20.bmp");
ledRed.load(":/bitmap/LED-Red-20.bmp");
ledDark.load(":/bitmap/LED-Dark-20.bmp");
ui.setupUi(this);
this->setWindowTitle(windowTitle); //<<<<<<<<<<<<<<<<<<<<<<Here
//....
}
To copy to clipboard, switch view to plain text mode
Bookmarks