Results 1 to 4 of 4

Thread: Setting QMessageBox geometry

  1. #1
    Join Date
    Jul 2007
    Posts
    57
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Setting QMessageBox geometry

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Setting QMessageBox geometry

    Use QMessageBox::setGeometry.
    The method is inherited from QWidget.

    Regards

  3. #3
    Join Date
    Jul 2007
    Posts
    57
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Setting QMessageBox geometry

    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...

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Setting QMessageBox geometry

    Yes, you must create an instance. There is no way to set geometry if you use static convenience methods of QMessageBox.
    J-P Nurmi

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.