Results 1 to 5 of 5

Thread: background-image on a set of widgets

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Sep 2006
    Posts
    23
    Thanks
    4
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Android

    Default Re: background-image on a set of widgets

    I've solved it.
    I don't think this is the best way, but it works.

    As I noticed that when I draw a background on the widgets, the Whole background was not draw on them, I've set a transparent background image for the widgets and It does the trick.

    Qt Code:
    1. wi->setStyleSheet("background-image: url(/home/asier/transparent.png)");
    To copy to clipboard, switch view to plain text mode 

    Now I've to adapt it to a more complex widget. That at the first try does not work. But I hope, it will.
    If you have any other idea for doing this, please tell me.

    Thanks
    Attached Images Attached Images

Similar Threads

  1. Replies: 3
    Last Post: 18th May 2012, 10:12
  2. Setting background image of QFrame
    By Claymore in forum Qt Programming
    Replies: 2
    Last Post: 12th February 2007, 19:50
  3. background image in QTreeView
    By momesana in forum Qt Programming
    Replies: 2
    Last Post: 11th January 2007, 06:25
  4. Grabbing widget's background
    By jpn in forum Qt Programming
    Replies: 4
    Last Post: 14th May 2006, 07:58
  5. [QT4.1.1 XP] background image
    By incapacitant in forum Newbie
    Replies: 3
    Last Post: 1st March 2006, 13:02

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.