hi
i want to change text size and window size of qmessagebox,it is very small :
Attachment 9261
i want change to :
Attachment 9262
tnx
Printable View
hi
i want to change text size and window size of qmessagebox,it is very small :
Attachment 9261
i want change to :
Attachment 9262
tnx
You can change the text size using html. For that :-
Code:
msgBox->setText("<font size="5">" + string + </font>);
And for the size of messagebox
Code:
msgBox->setFixedSize(width,height);
Thank you for your reply.
1- it is correct :
Code:
msgBox->setText("<font size=5>" + string + "</font>");
2- messagebox does not change !
Code:
StringClass strclass; mb.setIconPixmap(exportSuccess); QPalette palette; mb.setFixedSize(100,100); mb.exec()
:(
Check with this:-
Code:
msg.setText("No images loaded"); msg.setInformativeText("There are no images in the list. Please create or load a project"); QSpacerItem* horizontalSpacer = new QSpacerItem(500, 0, QSizePolicy::Minimum, QSizePolicy::Expanding); layout->addItem(horizontalSpacer, layout->rowCount(), 0, 1, layout->columnCount()); msg.exec();