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 like a Terminal/Console
Forum Updated to NodeBB v4.3 + New Features

QPlainTextEdit like a Terminal/Console

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.1k 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.
  • B Offline
    B Offline
    brlebtag
    wrote on last edited by
    #1

    Hi all,

    Is there any way to allow user to insert text in a QPlainTextEdit without erase (with the backspace key) QPlainTextEdit's current content? just like a terminal/Console, i need to implement something like this:

    QPlaintTextEdit's content example:

    Insert Text: (user can insert or delete text here but can't erase the text "Insert Text: " or anything before it)

    has Qt something like that already Implementated or do i have to do it myself?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stevenceuppens
      wrote on last edited by
      #2

      Hi,

      QTextEdit has a property setPlaceholderText(const QString &),

      but QPlainTextEdit hasn't ..

      Steven CEUPPENS
      Developer / Architect
      Mobile: +32 479 65 93 10

      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