hi
i want to change text size and window size of qmessagebox,it is very small :
small_Qmessagebox.JPG
i want change to :
small_Qmessagebox2.jpg
tnx
hi
i want to change text size and window size of qmessagebox,it is very small :
small_Qmessagebox.JPG
i want change to :
small_Qmessagebox2.jpg
tnx
You can change the text size using html. For that :-
Qt Code:
msgBox->setText("<font size="5">" + string + </font>);To copy to clipboard, switch view to plain text mode
And for the size of messagebox
Qt Code:
msgBox->setFixedSize(width,height);To copy to clipboard, switch view to plain text mode
Heavy Metal Rules. For those about to rock, we salute you.
HIT THANKS IF I HELPED.
smemamian (3rd July 2013)
Thank you for your reply.
1- it is correct :
Qt Code:
msgBox->setText("<font size=5>" + string + "</font>");To copy to clipboard, switch view to plain text mode
2- messagebox does not change !
Qt Code:
StringClass strclass; mb.setIconPixmap(exportSuccess); QPalette palette; mb.setFixedSize(100,100); mb.exec()To copy to clipboard, switch view to plain text mode
![]()
Check with this:-
Qt 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();To copy to clipboard, switch view to plain text mode
Heavy Metal Rules. For those about to rock, we salute you.
HIT THANKS IF I HELPED.
smemamian (4th July 2013)
Bookmarks