Results 1 to 4 of 4

Thread: Size of QMessageBox

  1. #1
    Join Date
    Jul 2009
    Posts
    40
    Thanks
    7

    Post Size of QMessageBox

    Hello

    The size of the QMessageBox is always equal to its text. If I have caption text that is bigger of the message box text, only part of the caption text is shown. How to make the size of the QMessageBox at least as the the size of its caption text ?
    Maybe there is some flag I can set

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Size of QMessageBox

    It's not possible to determine the window caption size from within the application.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2009
    Posts
    40
    Thanks
    7

    Default Re: Size of QMessageBox

    How to make my whole caption text visible , then
    Maybe resize the message box to some default acceptable size, that hopefully will be good for the most cases , although it looks more like workaround and not solution

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Size of QMessageBox

    You can show the window maximized
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QMessageBox Size
    By locus in forum Qt Programming
    Replies: 2
    Last Post: 20th July 2011, 13:35
  2. QMessageBox size
    By mattia in forum Newbie
    Replies: 2
    Last Post: 24th December 2007, 10:14
  3. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 17:57
  4. change font size and button size of QMessageBox
    By nass in forum Qt Programming
    Replies: 6
    Last Post: 13th September 2006, 19:16
  5. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

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.