Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

elidedlabel example problem: QTextLine line = textLayout.createLine(); only success when the QString include space..



  • elidedlabel example problem: QTextLine line = textLayout.createLine(); only success when the QString include space..
    i now have a long string without any space, but i want to show it in 2 lines, and if still not enought, then elideRight.
    but when i tried the method in this example,
    QTextLine line = textLayout.createLine();
    will failed when there is no white space in the long string.....
    how can i fix it?


Log in to reply