Results 1 to 3 of 3

Thread: setting background color and repositioning

  1. #1
    Join Date
    Mar 2009
    Location
    india->gujarat->bhavnagar
    Posts
    36
    Thanks
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Question setting background color and repositioning

    i want to set the background color and repositioning the widget

    i have used stylesheet() but it is only able to set the widget background. I want to set the whole background color....

    Please help

    Thanks in advance.

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: setting background color and repositioning

    Quote Originally Posted by mind_freak View Post
    I want to set the whole background color....
    Of what ?

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

    Default Re: setting background color and repositioning

    to the whole application use
    void QApplication::setPalette( const QPalette & palette, const char * className = 0 )
    "Behind every great fortune lies a crime" - Balzac

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.