Results 1 to 2 of 2

Thread: Transparent QTreeView

  1. #1
    Join Date
    Dec 2008
    Location
    PUNE (INDIA)
    Posts
    49
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    11
    Thanked 1 Time in 1 Post

    Post Transparent QTreeView

    Hi all intelligent peple.
    I am developing an application in which i have a QTreeView.
    I want to make it transparent , so that i can see the (image , logo etc) which is behind the QTreeView.

    Code is --------------------
    Qt Code:
    1. #include <QtGui>
    2. int main(int argc , char *argv[])
    3. {
    4.  
    5. QApplication app(argc , argv);
    6. QDirModel model;
    7. QTreeView treeview;
    8. treeview.setAnimated(true);
    9. treeview.setModel(&model);
    10. treeview.setRootIsDecorated(true);
    11. treeview.show();
    12. return app.exec();
    13. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by jpn; 26th December 2008 at 12:41. Reason: missing [code] tags
    Thanks & Regards ,

    Vajindar Laddad .
    Trainee Developer.
    (INDIA).
    91+9325014248

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Transparent QTreeView

    Please search the forums before asking questions:

    http://www.qtcentre.org/forum/f-qt-p...iew-17720.html
    J-P Nurmi

Similar Threads

  1. QDirModel and QTreeView cut and paste
    By Micawber in forum Qt Programming
    Replies: 4
    Last Post: 28th May 2008, 21:16
  2. leaveEvent on transparent area issue
    By nooky59 in forum Qt Programming
    Replies: 10
    Last Post: 8th January 2008, 14:22
  3. QTreeView help
    By bepaald in forum Qt Programming
    Replies: 1
    Last Post: 15th August 2007, 22:22
  4. Regarding drawing on Transparent Window
    By Shalabh in forum Qt Programming
    Replies: 3
    Last Post: 31st May 2007, 11:32
  5. background image in QTreeView
    By momesana in forum Qt Programming
    Replies: 2
    Last Post: 11th January 2007, 07: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.