Thank you for your reply.
1- it is correct :
msgBox->setText("<font size=5>" + string + "</font>");
msgBox->setText("<font size=5>" + string + "</font>");
To copy to clipboard, switch view to plain text mode
2- messagebox does not change !
StringClass strclass;
strclass.
getStringOne() + "</font>" ,
QMessageBox::NoIcon,
QPixmap exportSuccess
(":/PIC/award.png");
mb.setIconPixmap(exportSuccess);
mb.setFixedSize(100,100);
mb.exec()
StringClass strclass;
QMessageBox mb(" Win ","<font size=10>" +
strclass.getStringOne() + "</font>" ,QMessageBox::NoIcon,
QMessageBox::Ok | QMessageBox::Default,
QMessageBox::NoButton,
QMessageBox::NoButton);
QPixmap exportSuccess(":/PIC/award.png");
mb.setIconPixmap(exportSuccess);
QPalette palette;
palette.setBrush(QPalette::Background,QBrush(QImage(":/PIC/award.png")));
mb.setFixedSize(100,100);
mb.exec()
To copy to clipboard, switch view to plain text mode
Bookmarks