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. A frontend GUI app: console view
Forum Updated to NodeBB v4.3 + New Features

A frontend GUI app: console view

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

    Hi,

    What is the best way to implement a 'Shell View' in a GUI application? I mean, a GUI application designed mainly to arrange shell utilities calls (a frontend). Such console view is a feature with almost any IDE; so, probably, the question is no big deal. I tried the docs, but can't think of the proper keywords. Any suggestion is welcome.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      I would go for a read-only "QPlainTextEdit":http://developer.qt.nokia.com/doc/qt-4.8/qplaintextedit.html, spawn the shell commands using "QProcess":http://developer.qt.nokia.com/doc/qt-4.8/qprocess.html, connect to "readReadStandardError()":http://developer.qt.nokia.com/doc/qt-4.8/qprocess.html#readyReadStandardError and "readyReadStandardOutput()":http://developer.qt.nokia.com/doc/qt-4.8/qprocess.html#readyReadStandardOutput and "append":http://developer.qt.nokia.com/doc/qt-4.8/qplaintextedit.html#appendPlainText the text to the QPlainTextEdit.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mahesh
        wrote on last edited by
        #3

        i am also facing the same problem how can we read the latest entry text from QPlainTextEdit...presently i am using QLineEdit for command entry and textedit for output showing...it's looking ugly ...can some one please help me ..

        i am trying to do like this

        tcl> puts "helloworld"
        helloworld
        tcl>

        //if i enter a puts command and hit enter how to read that command and how to pass the signal to Qprocess like QLineedit have return pressed signal

        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