Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Qt6 c++ ScrollArea not showing scrollbar

As per the title, i have a infoWindow which is a QWidget and i can open it by clicking info in the main Qt MainWindow or by keep combination Ctrl+Alt+I.

This infoWindow contains vertical layouts holding the videos metadata and all the layout are inside of a QScrollArea class.
enter image description here

Problem is, even though the data exceed the windows max height which i want it to be static 640×480 dimensions, there is no scrolling bar showing.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

I’m very new to Qt and reading the documentation leaves me more confused.

>Solution :

Your QScrollArea is missing a layout itself (red stop sign on layout icon of tree). The total size of area is tracked by layout. You likely have set fixed or minimal sizes for each panel and add, let’s say, vertical layout to QScrollArea.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading