Results 1 to 4 of 4

Thread: How to reset the Palette for form

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to reset the Palette for form

    Quote Originally Posted by 3dch
    1. create a temporary control
    2. get its palette
    3. set the palette of the temp. control as the palette of your control
    Or simply (for standard Qt widgets):
    Qt Code:
    1. widget->setPalette( QApplication::palette( widget ) );
    To copy to clipboard, switch view to plain text mode 
    Last edited by jacek; 12th August 2006 at 12:19.

Similar Threads

  1. Palette definition
    By Roberto Sciascia in forum Qt Tools
    Replies: 3
    Last Post: 21st March 2006, 15:29

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.