Answer the question
In order to leave comments, you need to log in
How to replace (update) widget in centralWidget in qt?
-------------------------------------
Answer the question
In order to leave comments, you need to log in
So you add the layer already to the child widget, but you need to change it again in the same central one:
QGridLayout *layout = new QGridLayout;
QWidget *widget = new QWidget();
layout->addWidget(treeWidgetRight, 1, 5, 1, 8);
widget->setLayout(layout);
widget->setLayout(layout);
setCentralWidget(widget);
Variant on float.
Assumption that sidebars are fixed width (200px in demo). The central column comes first in the markup (SEO-shniks in ecstasy).
An example from 10 years ago.
Try to simplify the task to a minimum, and the solution will pop up by itself ^ ^
..if it doesn’t work out, then you need to get rid of the excess)
I got something similar on floats https://jsfiddle.net/v1ga73uq/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question