Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Inline wrapping in QT
maxg0 last edited by
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);
Is there a way of inline wrapping that text?
Many Thanks for your help
Did you try "this":http://qt-project.org/doc/qt-5.0/qtwidgets/qlabel.html#wordWrap-prop ?
Hope it helps
ChrisW67 last edited by
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 :)