Results 1 to 4 of 4

Thread: Change background color of Scroll area

  1. #1
    Join Date
    Jul 2012
    Location
    India
    Posts
    33
    Thanks
    10
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Change background color of Scroll area

    I changed the background colour of QScrollArea using style sheet property of QScrollArea

    But the colour changes will affect the Font dialog and Color dialog too. How I can solve this
    I tried the scrollAreaWidgetcontent too that also affecting the widget color of font dialog and color picker dialogs

  2. #2
    Join Date
    Jul 2012
    Location
    India
    Posts
    33
    Thanks
    10
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Change background color of Scroll area

    I am trying this for several days please help me...

  3. #3
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    518
    Thanks
    13
    Thanked 77 Times in 75 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Change background color of Scroll area

    Hi, try to change the palette and set QPalette::Window to the colour you want.

    Ginsengelf

  4. The following user says thank you to Ginsengelf for this useful post:

    arunkumaraymuo1 (4th September 2012)

  5. #4
    Join Date
    Jul 2012
    Location
    India
    Posts
    33
    Thanks
    10
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Change background color of Scroll area

    Thanks that worked perfectly......

Similar Threads

  1. Change background color of QPushButton
    By gtthang in forum Qt Programming
    Replies: 3
    Last Post: 26th November 2013, 10:23
  2. How to change the scroll area range in QTableView?
    By josentop in forum Qt Programming
    Replies: 1
    Last Post: 29th April 2012, 14:13
  3. Scroll bars in scroll area not comming in scroll area
    By aurora in forum Qt Programming
    Replies: 3
    Last Post: 4th January 2012, 06:50
  4. Replies: 1
    Last Post: 17th August 2010, 16:17
  5. Change QPushButton Background Color, Qt4.3
    By Rayven in forum Qt Programming
    Replies: 5
    Last Post: 4th July 2009, 07:14

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.