Inline wrapping in QT
-
Can anyone clarify whether it is possible to wrap around text or a long image inside a QLabel, so that the wrapping is on the same line?
What I have so far is
@mLabel = new QLabel("SHOW ME HOW YOU SCROLL PLEASE", this);
mLabel->resize(170,30);@
Is there a way of inline wrapping that text?
Many Thanks for your help
-
Hi,
Did you try "this":http://qt-project.org/doc/qt-5.0/qtwidgets/qlabel.html#wordWrap-prop ?
Hope it helps
-
I do not think the OP wants to wrap the text, they want a side-to-side scroll similar to the maligned HTML marquee element. This can be done with a timer and the paintEvent() of a sub-classed QLabel. Just use your favourite search engine for "QLabel marquee"...
Whether it should be done is another thing entirely :)