Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT5 textarea and placeholder text?
Forum Updated to NodeBB v4.3 + New Features

QT5 textarea and placeholder text?

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 357 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JulienD
    wrote on last edited by
    #1

    Hello,

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

    onTextChanged(){
    }
    onCursorPositionChanged:{
    }
    

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved