Dynamic changing QListWidget to QTableWidget
-
wrote on 17 Mar 2016, 22:43 last edited by
Hi all! I can't solve one problem.
User will need to change QListWidget to QTableWidget (and QTableWidget to QListWidget) depending on the QComboBox(or another way).Maybe QStackedWidget. If it's the best idea, then what code should I write?
Thank you!
-
Hi and welcome to devnet,
Do you mean how to connect QComboBox::currentIndexChanged signal to QStackedWidget::setCurrentIndex ?
-
Hi and welcome to devnet,
Do you mean how to connect QComboBox::currentIndexChanged signal to QStackedWidget::setCurrentIndex ?
wrote on 18 Mar 2016, 14:12 last edited by@SGaist good idea, it will be nice. And how to integrate QStackedWidget with QListWidget and QTalbeWidget ?
-
You add both widgets to the stack using QStackedWidget::addWidget
3/4