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. Any solutions on Windows terminals?
QtWS25 Last Chance

Any solutions on Windows terminals?

Scheduled Pinned Locked Moved Unsolved General and Desktop
winterm-emulateqwidgetactivex-control
7 Posts 3 Posters 405 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.
  • J Offline
    J Offline
    JackMyson
    wrote on 17 Nov 2024, 14:25 last edited by
    #1

    Since most of the Qt terminal emulators are based on *nix-systems, which are far differ from Windows', there's few Windows terminal emulators. Either they're too complex or I can't go through their code (disclaimer: my bad, not their bad).

    So I've a new idea: if it's Windows-only and Windows-problematic, why don't we use the ActiveX control provided by Qt to embed a powershell into the QMainWindow, as a QWidget?

    But after I've gone through all those documentations, I've had no help on embedding the powershell...

    Are there any solutions, any help will be appreciated. Thank in advance.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 17 Nov 2024, 14:41 last edited by
      #2

      Qt Creator now comes with a built-in terminal, maybe look how they have implemented it?

      (Z(:^

      1 Reply Last reply
      1
      • J Offline
        J Offline
        JackMyson
        wrote on 17 Nov 2024, 14:43 last edited by
        #3

        @sierdzio Where's the source code in terms of the directory? I'd really love to see how it gets itself implemented.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          JackMyson
          wrote on 17 Nov 2024, 14:43 last edited by
          #4

          Like, e.g., coin/CMake or 3rdparty/libs/..., etc., thanks!

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sierdzio
            Moderators
            wrote on 17 Nov 2024, 14:47 last edited by
            #5

            I don't know the code of Qt Creator, sorry. Maybe try grepping the sources for some phrases like "Terminal" or "Create a new Terminal.". These should take you pretty close.

            (Z(:^

            1 Reply Last reply
            0
            • J Offline
              J Offline
              JackMyson
              wrote on 17 Nov 2024, 15:05 last edited by
              #6

              Seemingly, it lies on here:

              https://github.com/qt-creator/qt-creator/blob/27bddc436c71efdc05e49ec7620390e3f2bc89a5/src/plugins/terminal/terminalicons.h

              But the code base is way too large and I can't comprehend (disclaimer once again: my bad, not theirs). However, I've found that some useful repositories, like

              • termqt by Terry Geng (written in Python, but I'll dig in). It seems it used pywinpty to emulate the functionalities...

              Anyway, I'm not urgently needing it right now. Let me take a sip of my coffee and work on it step by step, without being too hastily.

              1 Reply Last reply
              2
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 17 Nov 2024, 19:48 last edited by
                #7

                Hi,

                KDE's Konsole also supports Windows, it might be easier to integrate it in your project.

                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
                0

                1/7

                17 Nov 2024, 14:25

                • Login

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