Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
Description
https://projects.maemo.org/bugzilla/show_bug.cgi?id=260814
We need a way to display only, say, 3 lines of text, eliding at the end.
For example:
QTextOption option = m_staticText.textOption();
option.setWrapMode(QTextOption::WordWrap);
/* Proposed API */
option.setMaximumNumberOfLines(maxLines);
option.setElide(true);
option.setElideText("...");
m_staticText.setTextOption(option);