Results 1 to 8 of 8

Thread: transparent pixmap

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: transparent pixmap

    What's about
    Qt Code:
    1. pixmap.fill ( Qt::color0 );
    To copy to clipboard, switch view to plain text mode 
    ? Does that work?

  2. #2
    Join Date
    May 2010
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: transparent pixmap

    nope, that didn't work

  3. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: transparent pixmap

    What class is QListViewItem ? Its not a standard Qt class.
    also seems you want a common background for the list view and hence you want the transparent pixmap for the item, am i right ??

  4. #4
    Join Date
    May 2010
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: transparent pixmap

    QListViewItem is defined in listview.h in Qt 3.3 in Linux. (QListViewItem is not an QWidget, just a helper for QListView)

    Yes, I want to create a pixmap with transparant background, so the background of the listview is still visible (or actually the listviewitem, which can be blue (selected) or white (not selected))

    I have been able to load a png-file with transparant background, and then load it in to the listview, this works exacly the way I want't it to.

    createHeuristicMask() works, but the output is very ugly. and letters wich surround white areas, such as "0" or "6" doesn't get transparent.

  5. #5
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: transparent pixmap

    Qt 3.3 :O

    wud suggest to upgrade to 4.6.3 unless you have some boundations.
    4.7 is also coming this year...

  6. #6
    Join Date
    May 2010
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: transparent pixmap

    ok, i will try qt463. can you recommomend any beginner guide for people used to 3.3?

  7. #7
    Join Date
    May 2010
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: transparent pixmap

    qt 4.6.2 seems to be installed on my ubuntu.. good enough?

Similar Threads

  1. Semi-transparent QDrag pixmap
    By Jugdish in forum Qt Programming
    Replies: 0
    Last Post: 1st October 2009, 11:10
  2. QListWidget transparent background or pixmap
    By wdezell in forum Qt Programming
    Replies: 6
    Last Post: 6th March 2009, 17:53
  3. Non-transparent QWidget on semi-transparent parent
    By EuroElessar in forum Qt Programming
    Replies: 0
    Last Post: 29th August 2008, 16:20
  4. Transparent background on QLabel on transparent QWidget
    By codeslicer in forum Qt Programming
    Replies: 1
    Last Post: 13th February 2008, 02:10
  5. Transparent Pixmap
    By maverick_pol in forum Qt Programming
    Replies: 6
    Last Post: 19th December 2007, 16:25

Tags for this Thread

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.