Results 1 to 2 of 2

Thread: How to Apply stylesheet to QMessageBox?

  1. #1
    Join Date
    Oct 2009
    Posts
    105
    Thanked 4 Times in 2 Posts
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default How to Apply stylesheet to QMessageBox?

    Hi All,
    i need to apply background color as gray in messagebox;
    i wrote like

    Qt Code:
    1. QMessagebox msg(this);
    2. msg.setStyleSheet("background-color: gray ; color : gray");
    To copy to clipboard, switch view to plain text mode 

    But its not working. Can any body help me?

  2. #2
    Join Date
    Oct 2009
    Posts
    105
    Thanked 4 Times in 2 Posts
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to Apply stylesheet to QMessageBox?

    Hi All,
    i soved this problem. Created a pointer to QMessagebox in header file, and applied stylesheet to it.

Similar Threads

  1. how to apply stylesheet to qtopia application using qss file
    By namita in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 31st March 2008, 07:04
  2. Replies: 4
    Last Post: 28th March 2008, 04:55
  3. Replies: 8
    Last Post: 17th March 2008, 14:04
  4. how to apply qt css to qtopia application
    By namita in forum Qt Programming
    Replies: 1
    Last Post: 3rd March 2008, 12:19

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.