How to Implement the coding part of this UI Integration?
Solved
General and Desktop
-
@Aviral-0
@jsulm said in How to Implement the coding part of this UI Integration?:Probably because ui->page page of your stacked widget is shown and not the other you're adding.
I think
ui->stackedWidget->addWidget(logDisplay)
addslogDisplay
as another widget page after thepage
one you show in your screenshot, but does not make the new one be the one shown.After the
addWidget()
tryui->stackedWidget->setCurrentWidget(logDisplay);
Is that what you expected to see?
Having said that. I am not at all convinced you want that
page
already in yourQStackedWidget
? Depending on what you want, either get rid of that or go something like:ui->page->setLayout(new QVBoxLayout); ui->page->layout()->addWidget(LogDisplay);
-