简体   繁体   中英

Qt creator - how can I enable snaplines?

when I developed apps in C#, in visual studio designer there are lines which help with positioning form elements, eg it helps me, when I want to place one button right under another, on same X pos, when they have same X or Y snapline appear. can I enable this or similar feature in QtCreator? It's hard to make nice gui without it.

here is picture of snaplines in visual studio C# designer:

http://i.stack.imgur.com/Hzglj.png

To make nice GUI in Qt Creator you need to read about layouts:

http://doc.qt.io/qt-5/examples-layouts.html

There are examples of basic layouts in documentations:

http://doc.qt.io/qt-5/qtwidgets-layouts-basiclayouts-example.html

What you show on your image, it is called Vertical Layout. Layouts can be within each other and you can create very complex interface through them. It will be resized correctly together with window.

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