Layout and size problem
-
wrote on 24 Aug 2020, 06:10 last edited by
-
@jsulm Once I have set a layout, I cannot adjust the sizes of other widgets and labels etc. though.
@GunkutA Well, if you want to use layouts then you should not set sizes manually.
But you can influence the sizes indirectly using https://doc.qt.io/qt-5/qboxlayout.html#setStretch -
Hello I am trying to plot a graph by using QCustomPlot. I can plot the graph but half of it looks deleted as this:
In the layout my widget is in the window layout:
What might be the problem and how can I solve it? Thank you beforehand.
@GunkutA Your parent widget does NOT have a layout...
-
@jsulm All the layout options break the current view. Can I have a layout without touching the current view?
@GunkutA said in Layout and size problem:
Can I have a layout without touching the current view?
Yes, you need to layout all these UI parts (which are now not lay out in the window) properly.
-
@GunkutA said in Layout and size problem:
Can I have a layout without touching the current view?
Yes, you need to layout all these UI parts (which are now not lay out in the window) properly.
-
@jsulm Once I have set a layout, I cannot adjust the sizes of other widgets and labels etc. though.
@GunkutA Well, if you want to use layouts then you should not set sizes manually.
But you can influence the sizes indirectly using https://doc.qt.io/qt-5/qboxlayout.html#setStretch
3/6