Message 1 of 2
Vred 2024 can't set fixed width on button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey
from PySide6.QtWidgets import *
w = QWidget()
lay = QGridLayout(w)
for a in range(0,3):
btn = QPushButton(str(a))
btn.setFixedWidth(5)
btn.setFixedHeight(50)
lay.addWidget(btn)
w.show()
How can I make it work? Its ignoring my fixed width request.
Thanks.