Reusing some widgets or not?
-
Hi,
in my project a number of tabs are created each containing a QTableView instance depending on the information in a configuration file. The user of the program should be able to click on cells in a certain column of one of the QTableViews and being presented a html formated page with a more detailed description in a QTextBrowser instance and three QPushButtons to allow simple navigation and closing the page.
That's why, I chose to add a QStackedWidget to the tabs containing the QTableViews. Now comes my question from the point of view of efficiency: Is it worth the headache to try to reuse the combination of a QTextBrowser instance and three QPushButton instances or should I just create a new instance for each QTableView instance?
Kind regards,
Andreas
-