Results 1 to 10 of 10

Thread: tree view displaying widgets as items

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2013
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: tree view displaying widgets as items

    Hi, Did you find the solution for this?
    I have similar requirement where i have to place a combobox or text edit whenever i click that particular grid in Treeview.Please suggest how this can be done?
    I Thought of using delegate but I found that i have to apply that delegate for full view/row/column but i need to apply it only for particular grid.How to do that?

    Thanks in Advance...

  2. #2
    Join Date
    May 2010
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: tree view displaying widgets as items

    Yes - I used QGraphicsProxyWidget. Works really well and allows you to embed any QWidget you like.

    Cheers,
    Paksas

  3. #3
    Join Date
    Jan 2013
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: tree view displaying widgets as items

    If you dont mind, can you post sample code please.It will be really helpful for me.

    Thanks in Advance...

  4. #4
    Join Date
    May 2010
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: tree view displaying widgets as items

    There's not much to see there - you just instantiate a QGraphicsProxyWidget in your QGraphicsItem and that's it.
    Oh - and I use it only for the widgets rendered in a QGraphicsScene. I actually left that custom tree thing, 'cause I didn't find anything suitable.

Similar Threads

  1. Replies: 8
    Last Post: 6th May 2010, 11:17
  2. Tree View
    By bismitapadhy in forum Qt Programming
    Replies: 1
    Last Post: 8th June 2009, 06:31
  3. C++ Tree View operation
    By zeeb100 in forum Qt Programming
    Replies: 9
    Last Post: 18th February 2009, 17:09
  4. problem with tree view
    By boss_bhat in forum Newbie
    Replies: 4
    Last Post: 4th June 2006, 21:03
  5. tree view!!
    By Seema Rao in forum Qt Programming
    Replies: 4
    Last Post: 9th May 2006, 14:09

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.