Out of curiosity: I am currently developing a Qt application on Windows 7. I want to set the window title to display in the taskbar. setWindowTitle is not applicable as my UI is a QMainWindow, not a QWidget.
I have a QString with the title, but I can't set it. I set the QMainWindow title in the Qt Designer but that's static. All I had reached is this:
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
// ....
QApplication::setApplicationDisplayName(qAppTitle);
parent->setWindowTitle(qAppTitle);
// ...
}
This turns the window title in my taskbar into:
[title from Qt Designer] - [qAppTitle variable]
Sucks.
Ideas?
