I am trying to adjust a QMessageBox, but somehow I did not find anything about how to address the WindowLogo and Name of the occurring Message Box correctly. It would be additionally nice to center the Button "ok" horizontally. My Code (Qt/C++) and the approach to address the MessageBox Window Icon and Name so far:
// just for the color understanding
const QColor BG_COLOR = QColor(125,125,125);
QString setColorBG = "{background: rgb("
+ QString::number(BG_COLOR.red()) + ","
+ QString::number(BG_COLOR.green()) + ","
+ QString::number(BG_COLOR.blue()) + ");}";
QMessageBox msg;
msg.setText("Please select images.");
msg.setIcon(QMessageBox::Warning);
msg.setWindowIcon(QIcon()); // has no effect
msg.setWindowIconText("Warning"); // has no effect
msg.setStyleSheet("QMessageBox QPushButton{background: rgb(173,173,173);}"
"QMessageBox " + setColorBG);
msg.exec();
Can the text, currently reading "PanoramaCreator", and the logo next to it be addressed by a similar approach or is something completely different necessary?