Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to use QStackWidget with Treeview



  • Hi,
    I am developing an application which has treeview and labels.
    The layout is like this :

    | Left side having treeview | right side labels |

    Now if parent node is clicked then i want to display some parent related information on labels
    and if child node is clicked then i want to display child related information on labels.
    I am planning to use QStackwidget for same but don't know how to connect it with Tree View.



  • Hi GAURAV PANT.
    What you mean by connect QStackedwidget with Treeview?
    If i understood, show one widget for parent item and another for child?



  • yes qxoz.. u r correct..



  • how to compare the strings in Qt


Log in to reply