hi all,

I want the following interface for my accounting application.

QTreeWidget on the left side
Custom Widget on the right side which is based on the item selected in the

My question is how can I determine the item selected and display the corresponding custom widget. Do I need to use 'switch'?

I can't use QTabWidget and QStackedWidget since I need a lot of views.