You could try QApplication::setFont().
You could try QApplication::setFont().
no that wouldn't do it... the rest of the application has set font's and stuff... i only want to change the messageBox's font and button sizes...
someone mentioned smth about
using html tags in my message..
but didn't go into detail... what is it i could do?
Exactly
Try this
Qt Code:
QMessabeBox::information( 0, "Title" , "<font size = 10 color = red > Hello World </font> " );To copy to clipboard, switch view to plain text mode
We can't solve problems by using the same kind of thinking we used when we created them
That will work for the message text, but you will have to either subclass QMessageBox in order to change the button font size, or call setFont() on a QMessageBox widget.Originally Posted by sunil.thaha
Save yourself some pain. Learn C++ before learning Qt.
One option to access the buttons (to modify their sizes) is to create an instance of QMessageBox (instead of using convenient static methods) and then use QObject::findChildren() to find the buttons.
J-P Nurmi
gfunk (10th March 2007)
Bookmarks