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 run a non-Qt application or Qt Creator inside of a QWidget
QtWS25 Last Chance

Is it possible to run a non-Qt application or Qt Creator inside of a QWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 3 Posters 1.3k 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.
  • N Offline
    N Offline
    Nite Coder
    wrote on last edited by
    #1

    Hi, I just came up with an idea to create a fake desktop for Qt, written in Qt. I was thinking I would either run a window or a desktop widget and somehow incorporate Qt Creator to open in the widget. Though I don't know if it's possible or how to do it.

    Note

    • I would prefer to put it on a widget that could go on the screen, so a QDesktopWidget or (less preferred) QMainWindow
    • I want to run it so whatever widget I chose the application can't leave the widget
    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      Well its very platform bound.
      On linux some apps allows for -wid parameter.
      Like xterm .
      On windows, some apps offer COM interface for embedding.

      You have the source for Creator so that could be possible but huge work.

      There is also
      https://stackoverflow.com/questions/33699258/qt-5-5-embed-external-application-into-qwidget
      (createWindowContainer)

      1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by mrjj
        #3

        Hi
        Update
        i think you can get the winID for external app with
        GetWindowThreadProcessId(hWnd, &dwWndProcID);
        printf("WinID %d\n", dwWndProcID);
        (native calls)
        But i have not tested it :)

        You might need to dig into the win API docs to find out how to grab the ID for embedding.
        Note, i have not tried createWindowContainer myself but it seems to be working for others.

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

          Hi,

          Do you want to implement some sort of Kiosk mode ?

          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
          • N Offline
            N Offline
            Nite Coder
            wrote on last edited by
            #5

            Err...
            What's Kiosk mode?

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

              Standard computer with one front facing application e.g. ATM, Train station information panel etc.

              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
              2
              • N Offline
                N Offline
                Nite Coder
                wrote on last edited by
                #7

                Sorry if I just don't understand that. I am 13. Can you describe it a bit more simpler

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

                  I'd recommend this article for a start and then this one.

                  Basically, it's a computer usually with one application running that the user can't quit. One of the most simple example is a computer at an exhibition that shows a presentation non-stop all day long.

                  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
                  3
                  • N Offline
                    N Offline
                    Nite Coder
                    wrote on last edited by
                    #9

                    Yes, that is what I am trying to make.

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

                      Are you targetting a device or a computer ?

                      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
                      2
                      • N Offline
                        N Offline
                        Nite Coder
                        wrote on last edited by Nite Coder
                        #11

                        Computer. I also don't want to use QML, just C++

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

                          QML can also be used on computers. Anyway, the article I linked to should give you some pointers about the subject and how to implement it.

                          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

                          • Login

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