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. [Solved]QTextEdit terminal
Forum Update on Monday, May 27th 2025

[Solved]QTextEdit terminal

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 3.8k 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.
  • T Offline
    T Offline
    TFabbri
    wrote on last edited by
    #1

    Hi,
    i want to create a terminal interface for my project. I am using QTextEdit object.
    I've done everything, but I want that some past text of the widget must be fixed and not editable like a terminal interface.
    How can I do??
    Thanks

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      look at "qtserialport":http://qt.gitorious.org/qtplayground/qtserialport
      in examples\terminal\ directory you find what you need.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TFabbri
        wrote on last edited by
        #3

        Thank you for your reply but in that repository there is not the solution.
        I want to use my QTextEdit like a terminal, but I want to input some command in it.
        The code in that repository doesn't allow to delete the content by discarding the backspace action.
        I want to realize the same behavior like a command prompt.
        Any suggestions?

        1 Reply Last reply
        0
        • J Offline
          J Offline
          joonhwan
          wrote on last edited by
          #4

          Please take a look at "ReplWidget":https://github.com/pb82/ReplWidget
          Repl means "Read-Eval-Print-Loop" which is generally used in script language environment and this is similar to command prompt. And the code there was not complex when I first looked into, so I believe you'd feel comformtable.
          Good luck

          joonhwan at gmail dot com

          1 Reply Last reply
          0
          • T Offline
            T Offline
            TFabbri
            wrote on last edited by
            #5

            bq. Please take a look at ReplWidget [github.com]

            Thank you so much!
            This is perfect for my purposes!

            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