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
Forum Updated to NodeBB v4.3 + New Features

Multi Process in a Widget

Scheduled Pinned Locked Moved Unsolved Language Bindings
12 Posts 2 Posters 4.5k 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.
  • L Offline
    L Offline
    LeeDaShen
    wrote on 2 Nov 2016, 09:40 last edited by A Former User 11 Feb 2016, 18:45
    #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
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 2 Nov 2016, 09:46 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 Nov 2016, 09:49
      2
      • M mrjj
        2 Nov 2016, 09:46

        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 2 Nov 2016, 09:49 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

        M 1 Reply Last reply 2 Nov 2016, 09:53
        0
        • L LeeDaShen
          2 Nov 2016, 09:49

          @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

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 2 Nov 2016, 09:53 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 Nov 2016, 10:01
          2
          • M mrjj
            2 Nov 2016, 09:53

            @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 2 Nov 2016, 10:01 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.

            M 1 Reply Last reply 2 Nov 2016, 10:06
            0
            • L LeeDaShen
              2 Nov 2016, 10:01

              @mrjj

              First of all, thank you.

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

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 2 Nov 2016, 10:06 last edited by mrjj 11 Feb 2016, 10:06
              #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 2 Nov 2016, 10:20
              1
              • M mrjj
                2 Nov 2016, 10:06

                @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 2 Nov 2016, 10:20 last edited by
                #7

                @mrjj

                Some parameters must be restarted to not conflict, like cookie

                M 1 Reply Last reply 2 Nov 2016, 10:23
                0
                • L LeeDaShen
                  2 Nov 2016, 10:20

                  @mrjj

                  Some parameters must be restarted to not conflict, like cookie

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 2 Nov 2016, 10:23 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 2 Nov 2016, 10:26
                  1
                  • M mrjj
                    2 Nov 2016, 10:23

                    @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 2 Nov 2016, 10:26 last edited by
                    #9

                    @mrjj

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

                    M 1 Reply Last reply 2 Nov 2016, 13:09
                    0
                    • L LeeDaShen
                      2 Nov 2016, 10:26

                      @mrjj

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

                      M Offline
                      M Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on 2 Nov 2016, 13:09 last edited by
                      #10

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

                      L 1 Reply Last reply 3 Nov 2016, 00:59
                      1
                      • M mrjj
                        2 Nov 2016, 13:09

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

                        L Offline
                        L Offline
                        LeeDaShen
                        wrote on 3 Nov 2016, 00:59 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

                        M 1 Reply Last reply 3 Nov 2016, 07:14
                        0
                        • L LeeDaShen
                          3 Nov 2016, 00:59

                          @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

                          M Offline
                          M Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on 3 Nov 2016, 07:14 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

                          3/12

                          2 Nov 2016, 09:49

                          topic:navigator.unread, 9
                          • Login

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