PyQt5布局控件QVBoxLayout简介
采用QVBoxLayout类,按照从上到下的顺序添加控件
本节内容较少,演示两个实例,便于明白QVBoxLayout(垂直布局)的使用
QVBoxLayout的正常使用实例
import sys
from PyQt5.QtWidgets import QApplication ,QWidget ,QVBoxLayout , QPushButton
class Winform(QWidget):
def __init__(self,parent=None):
super(Winform,self).__init__(parent)