Results 1 to 2 of 2

Thread: Qwt overrides Widget background

  1. #1
    Join Date
    Dec 2007
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qwt overrides Widget background

    Hello,

    my problem is that i have a widget which colors are set with a stylesheet defined in the qdesigner. This works fine, but if i add a Qwt plot to the widget, the background is set to default and i unable to set it with Widget::setBackgroundRole.

    Perhaps you have a suggestion how to do a workaround?

    I am using Qwt Version 5.0.0 and Qt 4.3.1 on Windows.

    Thank You,
    Garfield

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qwt overrides Widget background

    Quote Originally Posted by garfield View Post
    This works fine, but if i add a Qwt plot to the widget, the background is set to default and i unable to set it with Widget::setBackgroundRole.
    The background of your widget, or the background of the plot canvas ? Can you post a small demo ?

    Uwe

Similar Threads

  1. How to Transparent QGraphicsView widget Background?
    By ashukla in forum Qt Programming
    Replies: 31
    Last Post: 6th March 2010, 11:35
  2. Graphics widget with background
    By ad5xj in forum Newbie
    Replies: 2
    Last Post: 24th August 2007, 16:29
  3. Background image and semitransparent widget
    By asieriko in forum Qt Programming
    Replies: 3
    Last Post: 20th August 2007, 16:43
  4. transparent background of the main widget
    By nagpalma in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2007, 17:52
  5. My own scale widget in Qwt
    By igrms in forum Qwt
    Replies: 7
    Last Post: 15th June 2006, 21:18

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.