Dynamic changing QListWidget to QTableWidget
Unsolved
General and Desktop
-
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 ?
@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