-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
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
Label wrapped vertical size #41
Comments
|
“If you want the QLabel to fit the text then you must use adjustSize()” |
https://doc.qt.io/qtforpython-6/overviews/layout.html#layout-issues “The use of rich text in a label widget can introduce some problems to the layout of its parent widget. Problems occur due to the way rich text is handled by Qt’s layout managers when the label is word wrapped.” |
https://stackoverflow.com/questions/14238138/heightforwidth-label
Link is broken but the code is in the Wayback machine: https://web.archive.org/web/20191221090125/http://egret.psychol.cam.ac.uk/code/2017_01_16_qt_height_for_width/ Also on Github https://github.com/ucam-department-of-psychiatry/camcops/tree/master/tablet_qt/layouts Query to the author ucam-department-of-psychiatry/camcops#339 |
This vertical size calculation is wrong if
word_wrap=True
.pyedifice/edifice/base_components.py
Line 910 in 943bf85
https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QLabel.html
The text was updated successfully, but these errors were encountered: