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

TextArea cursor not updated after font size change



  • https://doc.qt.io/qt-5/qtquickcontrols-texteditor-example.html

    When you change font size in document cursor is not updated until you click TextArea.

    You can produce without typing any code as this: choose a text, open font dialog, increase font size to a big value then use Tab scroll until TextArea gets focus.

    Or just add a button and change fontSize on click like this: document.fontSize = 36

    https://doc.qt.io/qt-5/qquicktextdocument.html
    Maybe related to this because of this warning:
    Warning: The QTextDocument provided is used internally by Qt Quick elements to provide text manipulation primitives. You are not allowed to perform any modification of the internal state of the QTextDocument. If you do, the element in question may stop functioning or crash.

    39fb5102-62b2-4b36-8d28-53e7eff03224-image.png


Log in to reply