简体   繁体   中英

Stretchable gui in Qt

Is it possible to create a GUI in C++/Qt that will stretch seamless across the screen? I don't refer to a rearrangement of the GUI elements (buttons/text etc..), I mean a complete change in the aspect ratio of the GUI as it were a plain image.

Qt used size policies Qt doc to define how the GUIs resize. Set the elements to QSizePolicy::Expanding that should consume the extra space.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM