Nominate our 2022 Qt Champions!

QT5 textarea and placeholder text?

  • Hello,

    What I am searching for is the textField's placeholderText property but for textareas because I need multi-line input.


    Both those functions are difficult to exploit at this end because they will take into account the text set at load time (not by the user) and can become very unreliable (cursorposition and text length) when dictionnary is on (no way I turn that feature off).
    Moreover, onCursorPositionChanged won't get the latest text put so one has to use it in conjunction with onTextChanged.

    So do someone has an idea to implement that placeholder text properly?
    I am fighting for hours with the system now :(

    Thanks everyone

Log in to reply