I have a QMainWindow with a horizontal layout as central widget. The horizontal layout contains three widgets. Here is the code:
this.navigationTree=new NavigationTree();
Browser browser = new Browser();
this.clusteringPlot=new ClusteringPlot();
QWidget centralWidget=new QWidget();
QHBoxLayout layout=new QHBoxLayout();
layout.addWidget(navigationTree);
layout.addWidget(clusteringPlot);
layout.addWidget(browser);
centralWidget.setLayout(layout);
this.setCentralWidget(centralWidget);`
where Browser is a QWebView.
Whenever I resize the main window Browser does not get resized while clusteringPlot(extends QWidget) and navigationTree(extends QTreeWidget) do.
How can I change my code so that also Browser get resized? I took a look at similar questions but I could not find a solution to my problem.
Thanks a lot in advance Rossella
clusteringPlot
to get a third of the extra space, whilebrowser
gets the remaining two-thirds? If you could provide a bit more information, I'm happy to provide a more detailed answer :) – sam-w