Results 1 to 2 of 2

Thread: how to resize QMessageBox?

  1. #1
    Join Date
    Jul 2012
    Posts
    21
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    2

    Question how to resize QMessageBox?

    Hi everyone.

    I have a problem resizing the QMessageBox
    Qt Code:
    1.  
    2. QString er=tr("We are talking about a short stop at the end of a word in reading the Koran, with the intention to continue reading.");
    3. //here I need resizing.
    4. noc.setText(er);
    To copy to clipboard, switch view to plain text mode 

    I've tried the followings but not working

    Qt Code:
    1. noc.setFixedSize(360,640);
    To copy to clipboard, switch view to plain text mode 
    and
    Qt Code:
    1. noc.setBaseSize(360,640)
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: how to resize QMessageBox?

    ... and what happened when you used those functions? What else did you try? Where do you think the default size of the message box comes from? When might that be determined?

Similar Threads

  1. Replies: 3
    Last Post: 11th December 2011, 11:09
  2. Replies: 1
    Last Post: 9th May 2011, 21:45
  3. resize of QMessageBox not working?
    By Sheng in forum Qt Programming
    Replies: 2
    Last Post: 13th November 2008, 15:25
  4. Replies: 2
    Last Post: 22nd January 2008, 17:10
  5. On Qt4.2.2, QMessageBox doesn't resize!
    By manhds in forum Qt Programming
    Replies: 1
    Last Post: 14th December 2006, 09:50

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.