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 shell (cmd on Windows and terminal on UNIX systems) into a QWidget?
QtWS25 Last Chance

Is it possible to spawn a shell (cmd on Windows and terminal on UNIX systems) into a QWidget?

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

    I would really like to have a terminal widget that'd either be cross platform or have it so I could determine if I want to spawn a cmd on windows or a terminal on UNIX systems into a QWidget.

    I found a GitHub project called qtermwidget but since my project is written in PyQt5, I have no idea how to use it. I saw that there were some python bindings but idk what to do with them.

    Any help is appreciated!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You can use Riverbank's sip to create python bindings for your custom widget.

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

      F 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        You can use Riverbank's sip to create python bindings for your custom widget.

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

        @SGaist

        It already has python bindings but I just don't know how to use them or find documentation on how to use it

        https://github.com/lxqt/qtermwidget/blob/master/pyqt/sip/qtermwidget.sip

        Pablo J. RoginaP jsulmJ 2 Replies Last reply
        0
        • F Fuchsiaff

          @SGaist

          It already has python bindings but I just don't know how to use them or find documentation on how to use it

          https://github.com/lxqt/qtermwidget/blob/master/pyqt/sip/qtermwidget.sip

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @Fuchsiaff and what about KDE's Konsole?

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • F Fuchsiaff

            @SGaist

            It already has python bindings but I just don't know how to use them or find documentation on how to use it

            https://github.com/lxqt/qtermwidget/blob/master/pyqt/sip/qtermwidget.sip

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Fuchsiaff said in Is it possible to spawn a shell (cmd on Windows and terminal on UNIX systems) into a QWidget?:

            I just don't know how to use them or find documentation on how to use it

            Did you read https://github.com/lxqt/qtermwidget/blob/master/README.md ?
            Also there are examples.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            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