Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML formatted TextArea tab character
Forum Updated to NodeBB v4.3 + New Features

QML formatted TextArea tab character

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.2k Views 1 Watching
  • 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.
  • P Offline
    P Offline
    phaikawl
    wrote on last edited by
    #1

    How do I display a tab character in QML TextArea with formatted text?
    I tried multiple ways but none works:

    • use html 	 (no tab displayed)
    • use \t (no tab displayed)
    • <pre>\t</pre> (this one displays the tab but there's always a trailing newline after that, don't know for what reason)

    Please don't tell me to use   instead, it's different from tabs and it's important for me.
    I don't believe QML cannot accomplish this simple task.
    Any help?

    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