1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <QApplication> #include <QWidget> #include <QString> int main(int argc, char **argv) { QApplication app(argc, argv); QWidget w; w.setWindowTitle(QString::fromLatin1("SomeTitle")); w.show(); return 0; }