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. Display Text from Console in GUI
Forum Updated to NodeBB v4.3 + New Features

Display Text from Console in GUI

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 350 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.
  • W Offline
    W Offline
    WorldTeacher
    wrote on last edited by
    #1

    I am trying to create a gui for a webparser I wrote. The parser prints some information to the cli, but I'd like to display it in the gui. Would something like that be possible?
    the output in the cli looks something like this:

    Title of media
    creator
    sigil
    

    How would I do that? I have not really used Qt before, a friend told me to try it, and now here I am.

    I am using Qt6 and Python 3.10.6

    Any answer is appreciated, thanks in advance

    JonBJ 1 Reply Last reply
    0
    • W WorldTeacher

      I am trying to create a gui for a webparser I wrote. The parser prints some information to the cli, but I'd like to display it in the gui. Would something like that be possible?
      the output in the cli looks something like this:

      Title of media
      creator
      sigil
      

      How would I do that? I have not really used Qt before, a friend told me to try it, and now here I am.

      I am using Qt6 and Python 3.10.6

      Any answer is appreciated, thanks in advance

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @WorldTeacher
      If you want to run and grab the output from an external program from Qt you will need to use QProcess.
      If you have the code (perhaps with a tiny rewrite) ready to be included into your current Qt app directly without needing to run it externally that might be preferable/more controllable.

      W 1 Reply Last reply
      2
      • JonBJ JonB

        @WorldTeacher
        If you want to run and grab the output from an external program from Qt you will need to use QProcess.
        If you have the code (perhaps with a tiny rewrite) ready to be included into your current Qt app directly without needing to run it externally that might be preferable/more controllable.

        W Offline
        W Offline
        WorldTeacher
        wrote on last edited by
        #3

        @JonB thanks for the reply, I'll give it a go in a bit.
        Currently, the code is in a seperate file, but once the gui is complete, I might add it into the Qt app, as it would probably make it easier

        HoMaH 1 Reply Last reply
        0
        • W WorldTeacher

          @JonB thanks for the reply, I'll give it a go in a bit.
          Currently, the code is in a seperate file, but once the gui is complete, I might add it into the Qt app, as it would probably make it easier

          HoMaH Offline
          HoMaH Offline
          HoMa
          wrote on last edited by
          #4

          @WorldTeacher Pls mark this topic as solved

          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