WDialog and layout
Added by Maximilian Kleinert over 6 years ago
Hi,
I am trying to make a WDialog with header, contents and footer. When the contents is too large there should be a scrollbar only for the contents part.
It works when I specify the maximum size for the WDialog absolute. If I specify the maximum size of the WDialog as percentage, the size of the WDialog seems correct but the white background is not drawn all to the bottom.
See the attached screenshots and code example.
I also tried to put a layout manager in the contents part but the effect was the same.
Thank you.
Best regards
Max
dialog_percentage.png (24.7 KB) dialog_percentage.png | |||
dialog_fixed.png (22.1 KB) dialog_fixed.png | |||
main.cpp (2.95 KB) main.cpp |