Results 1 to 6 of 6

Thread: How to start tree view from click in table view

  1. #1
    Join Date
    Apr 2016
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to start tree view from click in table view

    Hi ,

    I want to know how to start a tree view from table view.
    Actually i am able to connect both table view and tree view but problem is that whenever i click on any cell tree view is coming.
    I want to design it in such a way that when i click on particular cell only tree view should come up. Can anyone help me on this.

    Thanks in advance
    Namitha.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to start tree view from click in table view

    What do you mean with "start a tree view"?

    How does you UI look like right now?
    What do you do in the slot that reacts to selection/current changes?

    Cheers,
    _

  3. #3
    Join Date
    Apr 2016
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to start tree view from click in table view

    Hi ,
    Sorry for the late reply.
    What i want to do is when i click on row no. 1 of my table tree view 1 should come up which will have more information about the data i have given in the table. I am able to connect tableview cell click to tree view but i am not able to specifically begin the tree view which i want. Now when i click on any row in the table same tree view is coming.
    Please help me on this.
    Thanks in advance
    Namitha.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to start tree view from click in table view

    Which signal are you connecting to?
    What does that slot look like?

    Cheers,
    _

  5. #5
    Join Date
    Apr 2016
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to start tree view from click in table view

    I am using standard function on_tablewidget_cellClicked(int row,int column).
    My function looks like this

    void MainWindow:n_tablewidget_cellClicked(int row,int column)
    {

    //call to treewidget function.

    }

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to start tree view from click in table view

    So your // call to tree widget function then uses row and column to get the respective data from the table and use them to fill the tree widget with the appropriate values?

    Doesn't look like there is any problem.

    Cheers,
    _

Similar Threads

  1. Building Tree view from Table view which is already build.
    By DURGAPRASAD NEELAM in forum Newbie
    Replies: 1
    Last Post: 6th June 2015, 17:26
  2. Building Tree view from Table view which is already build.
    By DURGAPRASAD NEELAM in forum Newbie
    Replies: 6
    Last Post: 18th May 2015, 08:18
  3. table view and tree view
    By MKSPulok in forum Qt Programming
    Replies: 1
    Last Post: 16th June 2012, 22:48
  4. Display sql table menu in a tree view
    By mat.brighi in forum Newbie
    Replies: 2
    Last Post: 19th October 2011, 00:49
  5. Replies: 33
    Last Post: 7th December 2009, 11:11

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.