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. Redirect console output to GUI
Forum Updated to NodeBB v4.3 + New Features

Redirect console output to GUI

Scheduled Pinned Locked Moved Unsolved General and Desktop
terminalconsoleguiembedded
2 Posts 2 Posters 4.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.
  • A Offline
    A Offline
    Anime4000
    wrote on 12 Jan 2018, 18:33 last edited by Anime4000 1 Dec 2018, 18:44
    #1

    Hello everyone,

    I have program that written in C# and compiled under Mono, so my program can run on Linux but GUI quite ugly since I using WinForms.

    I plan to port Qt GUI, so my program look nice in any Linux distro.

    Before I start rewrite,
    my C# program are like this, my program using a lot console *.exe, where console program using a lot /r /b even animation, so standard/error redirect output to textbox end up garbage.

    At the end, create a console program, include a Form and call.
    Do Qt able to create a clone of console for GUI or... embedded console into GUI ?

    0_1515781975549_to-qt.png

    Here my project on github

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Jan 2018, 20:41 last edited by
      #2

      Hi and welcome to devnet,

      There's no ready made "console widget", you can use QPlainTextEdit or depending on the amount of data a QListView with a custom QStyledItemDelegate for fancy rendering.

      For getting the output of your cli application, you can use QProcess.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      1/2

      12 Jan 2018, 18:33

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved