Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
5.12.4
-
None
-
Qt5 for Linux, Android, or Windows.
Description
Thanks as ever for Qt, which is excellent. Further to the Qt6 blog post and request for suggestions:
In Qt 5 I have found it hard to (a) create labels that word-wrap their text, and (b) prefer to be wide rather than tall, and (c) are handled gracefully by Qt layouts such as QVBoxLayout, QHBoxLayout, QGridLayout, and FlowLayout, such that parents resize appropriately for their children.
Previous discussion is at https://stackoverflow.com/questions/14238138/heightforwidth-label , which remains relevant.
I'd like to suggest it for Qt6. This is operational and suggested code is at https://github.com/RudolfCardinal/camcops/tree/master/tablet_qt
... specifically,
- common/gui_defines.h
- lib/margins.*
- lib/sizehelpers.*
- layouts/*
- widgets/basewidget.*
- widgets/labelwordwrapwide.*
- widgets/verticalscrollarea.*
(also attached).
all the best,
Rudolf Cardinal.