Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Multi Process in a Widget

Multi Process in a Widget

Scheduled Pinned Locked Moved Unsolved Language Bindings
12 Posts 2 Posters 4.4k 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.
  • L Offline
    L Offline
    LeeDaShen
    wrote on last edited by A Former User
    #1

    How to use Qt 5 to develop multi process. Like a browser's multiple tabs on an interface. Can also be dragged out as a separate process.

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

      Hi
      QDockWidgets can be embedded and torn off to window.
      http://doc.qt.io/qt-5/qtwidgets-mainwindows-dockwidgets-example.html
      They can also be tabbed.

      L 1 Reply Last reply
      2
      • mrjjM mrjj

        Hi
        QDockWidgets can be embedded and torn off to window.
        http://doc.qt.io/qt-5/qtwidgets-mainwindows-dockwidgets-example.html
        They can also be tabbed.

        L Offline
        L Offline
        LeeDaShen
        wrote on last edited by
        #3

        @mrjj said in How to use QT5 to develop multi process. Like a browser's multiple tabs on an interface. Can also be dragged out as a separate process.:

        They can also be tabbed.
        hi
        QDockWidgets Can also be dragged out as a separate process

        mrjjM 1 Reply Last reply
        0
        • L LeeDaShen

          @mrjj said in How to use QT5 to develop multi process. Like a browser's multiple tabs on an interface. Can also be dragged out as a separate process.:

          They can also be tabbed.
          hi
          QDockWidgets Can also be dragged out as a separate process

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @LeeDaShen said in How to use QT5 to develop multi process. Like a browser's multiple tabs on an interface. Can also be dragged out as a separate process.:

          as a separate process

          No, its just a window.
          Nothing in Qt will let you drag anything out from a mainwindow and it becomes process on its own.

          That you need to hand code if you want that.

          You would use QProcess to start a new instance of your application and instruct it which
          "thing" to open as current.

          L 1 Reply Last reply
          2
          • mrjjM mrjj

            @LeeDaShen said in How to use QT5 to develop multi process. Like a browser's multiple tabs on an interface. Can also be dragged out as a separate process.:

            as a separate process

            No, its just a window.
            Nothing in Qt will let you drag anything out from a mainwindow and it becomes process on its own.

            That you need to hand code if you want that.

            You would use QProcess to start a new instance of your application and instruct it which
            "thing" to open as current.

            L Offline
            L Offline
            LeeDaShen
            wrote on last edited by
            #5

            @mrjj

            First of all, thank you.

            I want to start the process by QProcess in my interface display
            My program can manage the process.

            mrjjM 1 Reply Last reply
            0
            • L LeeDaShen

              @mrjj

              First of all, thank you.

              I want to start the process by QProcess in my interface display
              My program can manage the process.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by mrjj
              #6

              @LeeDaShen
              You are welcome.
              http://doc.qt.io/qt-5/qprocess.html
              Give you all you need to start stop the process(es).

              You will need to give it arguments when you start it, so it can start up with the "data" you torn
              off.

              You could use
              http://doc.qt.io/qt-5/qdockwidget.html#topLevelChanged
              Signal to know when user made it float.
              Then you would hide/remove it and start your app again (second time)
              with QProcess to get a new process running.

              L 1 Reply Last reply
              1
              • mrjjM mrjj

                @LeeDaShen
                You are welcome.
                http://doc.qt.io/qt-5/qprocess.html
                Give you all you need to start stop the process(es).

                You will need to give it arguments when you start it, so it can start up with the "data" you torn
                off.

                You could use
                http://doc.qt.io/qt-5/qdockwidget.html#topLevelChanged
                Signal to know when user made it float.
                Then you would hide/remove it and start your app again (second time)
                with QProcess to get a new process running.

                L Offline
                L Offline
                LeeDaShen
                wrote on last edited by
                #7

                @mrjj

                Some parameters must be restarted to not conflict, like cookie

                mrjjM 1 Reply Last reply
                0
                • L LeeDaShen

                  @mrjj

                  Some parameters must be restarted to not conflict, like cookie

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @LeeDaShen
                  Well you need to handle that in main.

                  You can use
                  QCoreApplication::arguments().at(1) (2,3,4,5)

                  to read paramters. There are also
                  QCommandLineParser for more features.

                  L 1 Reply Last reply
                  1
                  • mrjjM mrjj

                    @LeeDaShen
                    Well you need to handle that in main.

                    You can use
                    QCoreApplication::arguments().at(1) (2,3,4,5)

                    to read paramters. There are also
                    QCommandLineParser for more features.

                    L Offline
                    L Offline
                    LeeDaShen
                    wrote on last edited by
                    #9

                    @mrjj

                    You know how to log in to a browser to verify the cookie account

                    mrjjM 1 Reply Last reply
                    0
                    • L LeeDaShen

                      @mrjj

                      You know how to log in to a browser to verify the cookie account

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @LeeDaShen
                      Nope. Im not even sure what that means.

                      L 1 Reply Last reply
                      1
                      • mrjjM mrjj

                        @LeeDaShen
                        Nope. Im not even sure what that means.

                        L Offline
                        L Offline
                        LeeDaShen
                        wrote on last edited by
                        #11

                        @mrjj said in Multi Process in a Widget:

                        Nope. Im not even sure what that means.

                        Do you know how to log in to a browser
                        more than one account that verify the cookie

                        mrjjM 1 Reply Last reply
                        0
                        • L LeeDaShen

                          @mrjj said in Multi Process in a Widget:

                          Nope. Im not even sure what that means.

                          Do you know how to log in to a browser
                          more than one account that verify the cookie

                          mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @LeeDaShen
                          In which way, login ?
                          The browser dont have any login . Do you mean the user?

                          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