pyqt,Qt Designer 界面布局放大縮小


1.在qt desiginer添加一個Group Box,在Group box中添加所需要的控件,並對Group box進行右鍵,選擇layout中layout horizontally

 

2.再添加一個frame,並在其中添加一個TextEdit 和一個Frame1,在Frame1中添加相應控件。對Frame1右鍵選擇lay out Vertically.

同時選中TextEdit和Frame1,右鍵layout 選擇lay out horizontally in splitter.(如果想將TextEdit寬度設置大一點可以在對應控件屬性

中進行設置。

 

3.同時選中Groupbox和Frame右鍵layout 選擇lay out vertically in splitter.

 4.在Form大的窗口,右鍵layout,選擇lay out in Grid.  就可以對整個窗口進行全局放大縮小。(上面lay out ... in splitter是對兩個控件間進行放大縮小)

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM