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. Is it possible to spawn a pty shell inside a QWidget?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to spawn a pty shell inside a QWidget?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 520 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.
  • F Offline
    F Offline
    Fuchsiaff
    wrote on last edited by
    #1

    So I found this stackoverflow thread:
    https://stackoverflow.com/questions/52047286/spawning-a-shell-inside-a-pyqt5-widget-using-pty-spawn

    That's exactly what I want to do... but there are no answers under that.

    raven-worxR 1 Reply Last reply
    0
    • F Fuchsiaff

      So I found this stackoverflow thread:
      https://stackoverflow.com/questions/52047286/spawning-a-shell-inside-a-pyqt5-widget-using-pty-spawn

      That's exactly what I want to do... but there are no answers under that.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Fuchsiaff
      maybe embedding Python is an option for you?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      F 1 Reply Last reply
      0
      • W Offline
        W Offline
        wrosecrans
        wrote on last edited by
        #3

        The pty isn't a visible thing, so it's not something you can spawn inside a widget. Basically, you are asking about writing a terminal emulator, where you'll need to convert the keypress events of your widget to the stdin stream you send to the pty, and handle the display and output of the stream coming out of the stdout of the pty.

        1 Reply Last reply
        1
        • raven-worxR raven-worx

          @Fuchsiaff
          maybe embedding Python is an option for you?

          F Offline
          F Offline
          Fuchsiaff
          wrote on last edited by
          #4

          @raven-worx

          I forgot to mention that I'm writing my application is already written in python.

          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