Results 1 to 8 of 8

Thread: setting background color of QMessageBox

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: setting background color of QMessageBox

    Have you set some global stylesheet on your application ?
    Also in your code, it is useless to have msgBox, since you are actually calling message box thru one of the static functions of QMessageBox.
    Try setting stylesheet for QMessageBox in the application.

    See assistant How to style QMessageBox. You can find it under Qt StyleSheets page

  2. The following user says thank you to aamer4yu for this useful post:

    wagmare (23rd May 2009)

  3. #2
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    116
    Thanked 42 Times in 41 Posts

    Default Re: setting background color of QMessageBox

    Also in your code, it is useless to have msgBox, since you are actually calling message box thru one of the static functions of QMessageBox.
    ya ... i got the mistake ... how stupid i am declaring a msgbox and using one of the static functions of QMessageBox. .. . and setting stylesheet to msgBox
    "Behind every great fortune lies a crime" - Balzac

Similar Threads

  1. Replies: 10
    Last Post: 10th November 2010, 04:12
  2. Setting background colors to rows in QTableWidget
    By cnbp173 in forum Qt Programming
    Replies: 0
    Last Post: 24th April 2009, 18:38
  3. Setting background image of QFrame
    By Claymore in forum Qt Programming
    Replies: 2
    Last Post: 12th February 2007, 20:50
  4. setting desktop background and screensaver in X11
    By nupul in forum Qt Programming
    Replies: 5
    Last Post: 2nd April 2006, 22:11
  5. Replies: 2
    Last Post: 10th March 2006, 21:46

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.