Results 1 to 2 of 2

Thread: How can merge two Tree Views?

  1. #1
    Join Date
    May 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default How can merge two Tree Views?

    Hello
    I have a tree view. I need that when one row is expanded, another tree view shows up. This second tree view's columns are different from the main tree view both in number and title.

    In fact I have two table in SQL. One column in the first table is foreign key in another one and the relationship is one-to-many.
    I need to expand the primary key and all rows in the second table shows up!

    Any suggestion?!

  2. #2
    Join Date
    Sep 2011
    Location
    Portugal
    Posts
    25
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: How can merge two Tree Views?

    The faster answer I can give you is to use events
    Try to connect to the QTreeView's expanded(QModelIndex) or collapsed(QModelIndex) signals.

Similar Threads

  1. How to merge two QPixmaps in to one.
    By live_07 in forum Qt Programming
    Replies: 2
    Last Post: 23rd September 2009, 08:19
  2. How to merge qpixmaps in qt4.5
    By newqtuser in forum Qt Programming
    Replies: 2
    Last Post: 26th March 2009, 14:59
  3. How to merge two QPixmaps in to one.
    By babu198649 in forum Newbie
    Replies: 1
    Last Post: 17th August 2008, 13:59
  4. how to merge QPixmaps
    By tommy in forum Qt Programming
    Replies: 2
    Last Post: 27th March 2008, 12:02
  5. Tooltips & Qt4 tree views
    By yogeshm02 in forum Newbie
    Replies: 7
    Last Post: 17th January 2006, 15:12

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.