PDA

View Full Version : Setting QMessageBox geometry



Krish_ng
25th July 2007, 14:06
How to set the geometry of a MessageBox...I hav a application that dispalys message box
for invalid entry.The message box works fine for Fedora,but on Debian the meaasge box is small with title half cut ...Any ideas

marcel
25th July 2007, 14:11
Use QMessageBox::setGeometry.
The method is inherited from QWidget.

Regards

Krish_ng
25th July 2007, 14:27
I am using a QMessageBox::information(this,"str","str","str");
how can use the setGeometry for this messagebox...Should i create an instance and then
setgeometry...

jpn
25th July 2007, 14:47
Yes, you must create an instance. There is no way to set geometry if you use static convenience methods of QMessageBox.