resizing....
-
Hi,
I have made tests for one year with Qt 5.3 and Qt 5.4, only the widgets (that contain layouts and other controls) that derivate from QDialog can be resized,the widgets that derivate from QWidget and from QMainWindow cannot be correctly resized even if they contain layout .
are there any plans in Qt to change this? -
Im not sure I understand what you mean.
All widgets can be controlled by layouts ?
Do you mean stuff like font size and such things?
Qt 5.6 brings better support for high def screen etc.
-
No I had done tests with three widgets that derivate from QDialog,from Qwidget,and from QMainwindow and that contain layouts with controls inside.only the class that derivates from QDialog can be correctly resized (manually with the mouse) the two other class that derivates from QWidget and QMainwindow cannot be correctly resized.I had even looked at the code from QDialog to see how it was made for the resizing (don't rememeber exactly now...)
-
Well I use many dialog and I have no such issues.
What do yo u mean with "correctly resized" ?
Also QMainwindow have no issues with layouts so im wondering what you mean.
-
the dialog haven't any problem.I have said that the class that derivates from QDialog can be correctly resized.this is not the case of the class that derivates from QWidget and from QMainwindow,the Qwidget and QMainwindow are not correctly resized....
-
the dialog haven't any problem.I have said that the class that derivates from QDialog can be correctly resized.this is not the case of the class that derivates from QWidget and from QMainwindow,the Qwidget and QMainwindow are not correctly resized....
@stephane78
here is a mainwinow that does resizing
https://www.dropbox.com/s/4f3d5fworwtt3g8/stephaneresize.zip?dl=0Explain to me the incorrect part as it does 100% as i want it to?
-
OK,the only difference with my mainwindow is that mine doesn't contain a centralwidget but contains layouts.does the central widget do the resizing ? is there any mean to send you my test project ?
-
and I don't use frames too in my mainwindow...
-
OK,the only difference with my mainwindow is that mine doesn't contain a centralwidget but contains layouts.does the central widget do the resizing ? is there any mean to send you my test project ?
@stephane78
Well the layout is on the central widget.
So in that sense yes.Do you have dropbox ? very easy to share that way.
just paste link here. -
@stephane78
Well the layout is on the central widget.
So in that sense yes.Do you have dropbox ? very easy to share that way.
just paste link here.the frames are just to have areas to have different layouts in.
in right and left side. Could also just been a widget -
you can try to download my project?
I haven't put any central widget and that is probably my problem.did you put a vertical or horizontal layout in the central widget ? -
you can try to download my project?
I haven't put any central widget and that is probably my problem.did you put a vertical or horizontal layout in the central widget ?@stephane78
Already on it.
Yes it seems you dont put a layout on toplevel
widget so that is why its not working for you.I will return project shortly.
I changed main and "form" -
@stephane78
Already on it.
Yes it seems you dont put a layout on toplevel
widget so that is why its not working for you.I will return project shortly.
I changed main and "form" -
hi
picture of where u needed to add layout.
It dont matter if horz or vert. that just want u need. -
Ok thank you mrjj,
so even the qwidget and qmainwindow can be resized , I had this problem because I havent' put a layout in central widget.
ok my problem is solved. -
Ok thank you mrjj,
so even the qwidget and qmainwindow can be resized , I had this problem because I havent' put a layout in central widget.
ok my problem is solved.@stephane78
Ok super to hear.Yes all can be re-sized. All Widgets.
If you need special / complex layout. you can use a qwidget as placeholder for a
layout so you can easy have layouts in layouts if needed.