We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win10
3.9
PyQt5-Qt5 5.15.2
V1.7.1
class test1(QWidget): def __init__(self): super().__init__() self.line=LineEdit(self) self.ptn=PushButton('123',self) self.label=QLabel("sadfa",self) self.space_item=QSpacerItem(10,10,QSizePolicy.Minimum,QSizePolicy.Minimum) self.h_layout=QHBoxLayout() self.h_layout.addItem(self.space_item) self.h_layout.addWidget(self.label) self.h_layout.addItem(self.space_item) self.h_layout.addWidget(self.line,Qt.AlignCenter) self.h_layout.addItem(self.space_item) self.h_layout.addWidget(self.ptn,Qt.AlignCenter) self.h_layout.addItem(self.space_item) self.g_layout=QGridLayout() for i in [self.line,self.ptn,self.label]: i.setMinimumSize(50,40) self.setLayout(self.g_layout) self.g_layout.addLayout(self.h_layout,0,0,1,2) for i,factor in enumerate([2,3,1,8,1,2,4]): self.h_layout.setStretch(i,factor) self.resize(100, 100) if __name__ == '__main__': app = QApplication(sys.argv) test=test1() test.show() sys.exit(app.exec_()) 版本: ```python Name: PyQt-Fluent-Widgets Version: 1.7.1 Summary: A fluent design widgets library based on PyQt5 Home-page: https://qfluentwidgets.com Author: zhiyiYo Author-email: shokokawaii@outlook.com License: GPLv3 Location: e:\anaconda3\envs\pytorch529\lib\site-packages Requires: darkdetect, PyQt5, PyQt5-Frameless-Window Required-by:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
Operation System
win10
Python Version
3.9
PyQt/PySide Version
PyQt5-Qt5 5.15.2
PyQt/PySide-Fluent-Widgets Version
V1.7.1
How to Reproduce?
Minimum code
The text was updated successfully, but these errors were encountered: