Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QPlainTextEdit format text
Qt 6.11 is out! See what's new in the release blog

QPlainTextEdit format text

Scheduled Pinned Locked Moved Unsolved General and Desktop
qplaintextedit
2 Posts 2 Posters 987 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.
  • D Offline
    D Offline
    dridk2
    wrote on last edited by
    #1

    I would like to have a QPlainTextEdit which add space every 3 letter. For exemple :

    ACG GTA CAT GTA 
    

    Where Do I start ? QTextDocument ? QDocumentLayout ? QTextblock ... ?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Im not sure what the overall goal is but
      you could maybe cheat with an eventfilter and count the keypresses and
      for every 3, send a keySpace also.

      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