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. Chrome like tab with separate process for each?
QtWS25 Last Chance

Chrome like tab with separate process for each?

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 845 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.
  • A Offline
    A Offline
    Ankita thakur
    wrote on last edited by
    #1

    I need to create a multi tabbed window with each window as a separate process. I intend to use QProcess for this so that if one crashes then the other tabs can still be functional. Please help

    JonBJ 1 Reply Last reply
    0
    • A Ankita thakur

      I need to create a multi tabbed window with each window as a separate process. I intend to use QProcess for this so that if one crashes then the other tabs can still be functional. Please help

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @ankita-thakur
      What do you think each sub-process is going to do in any tab? If you think it is going to do UI input/output in the tab, it is not.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Ankita thakur
        wrote on last edited by
        #3

        @JonB I am not sure i got you question. Perhaps i will explain the details of the problem:

        • On launching the application a QMainQWindow should appear which is a tabbed view. Each tab belongs to a different instance of an object like Patient. Each Tab will be representing the information of a patient.
        • I need to keep the tabs as separate processes so that if one of the tabs crashes the others still remain active.
        • At one point of time i would need only one active tab which means only one active process
        JonBJ 1 Reply Last reply
        0
        • A Ankita thakur

          @JonB I am not sure i got you question. Perhaps i will explain the details of the problem:

          • On launching the application a QMainQWindow should appear which is a tabbed view. Each tab belongs to a different instance of an object like Patient. Each Tab will be representing the information of a patient.
          • I need to keep the tabs as separate processes so that if one of the tabs crashes the others still remain active.
          • At one point of time i would need only one active tab which means only one active process
          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @ankita-thakur
          But what are these "processes" doing? You cannot attach a process to a tab per se.

          There are other ways of keeping things going if something "crashes". All I can say it does not sound right to me.....

          A 1 Reply Last reply
          0
          • A Offline
            A Offline
            anil_arise
            wrote on last edited by anil_arise
            #5

            If you have a list of Qprocess ; then do 2-3 for each Qprocesses

            1. Create QtabWidget
            2. add widget for each process & start Process ; use connect signal errorOccurred(QProcess::ProcessError error) and at finished
            3. when error occurred and it's corresponding tab of tabWidget close it.
            1 Reply Last reply
            0
            • JonBJ JonB

              @ankita-thakur
              But what are these "processes" doing? You cannot attach a process to a tab per se.

              There are other ways of keeping things going if something "crashes". All I can say it does not sound right to me.....

              A Offline
              A Offline
              Ankita thakur
              wrote on last edited by Ankita thakur
              #6

              @jonb
              The Process will fetch data for each Patient and displays it in a QWidget which is displayed in the tabs where each tab correspond to one patient.Please refer the screenshot.

              Also please suggest any other way to handle crash and also data safety such that the Patient1 data is not accessible to Patient2

              JonBJ 1 Reply Last reply
              0
              • fcarneyF Offline
                fcarneyF Offline
                fcarney
                wrote on last edited by
                #7

                But what happens when the gui dies? Each process cannot be a gui unless it owns its own window. You could have a separate window for each. If you have a process communicating to a tab somehow, if the gui holding all the tabs dies, then everything dies.

                It would be better to shoot for reliable than some idea of separation of processes. Also, if the processes are on the same machine then they can access each other. So separating data from each other is not very practical.

                C++ is a perfectly valid school of magic.

                1 Reply Last reply
                0
                • A Ankita thakur

                  @jonb
                  The Process will fetch data for each Patient and displays it in a QWidget which is displayed in the tabs where each tab correspond to one patient.Please refer the screenshot.

                  Also please suggest any other way to handle crash and also data safety such that the Patient1 data is not accessible to Patient2

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by
                  #8

                  @ankita-thakur said in Chrome like tab with separate process for each?:

                  The Process will fetch data for each Patient and displays it in a QWidget which is displayed in the tabs

                  I have now tried to ask several times. You have a working subprocess which displays output in a widget in the parent process? How? How does it access the widget? Maybe you know more than I do

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Ankita thakur
                    wrote on last edited by
                    #9

                    @anil_arise

                    Thanks for the response. Can you elaborate for point 2. How can we create different processes and add as tabbed widgets.

                    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