Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Multi-Window application logic
Forum Updated to NodeBB v4.3 + New Features

Multi-Window application logic

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 2 Posters 434 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.
  • O Offline
    O Offline
    OmegaPhone
    wrote on last edited by
    #1

    Hi,
    i'm of new on Qt and i'm working on an multi-window application for embedded target (Rpi and µC).

    The app is composed of a main Window with three pushButtons that allows to open three other windows : flash, test, calibration as shown on the schema.
    forumQT(1).png

    I have also a class "SlaveInstance" that have to be able to communicate informations with the three windows.
    I'm looking for advices concerning the best coding logic to implement such an app, with the relations between the differents windows, and where to declare the slaveInstance class.

    It's more about a discussion and every idea is welcome.
    Thank's a lot !

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

      Hi and welcome to devnet,

      What is slave instance ?

      In any case, for the widget switching, you can take a look at QStackedWidget.

      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
      • O Offline
        O Offline
        OmegaPhone
        wrote on last edited by
        #3

        Thank's for your time.

        A slave Instance is a class where the data of the slave instance are regrouped. For exemple the slave ID, the register address of error or voltage state, or the voltage value that has been measured. The three others windows have to be able to modify or read data of the slave instance by accessors and mutators member functions of the slave instance class.

        For now, all of the windows are QWidgets and are shown or closed on the clicked signal of the corresponding pushbutton. I don't know if this method is a good practice and i will take a look on QStackedWidget !

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

          In that case maybe a QTabWidget would also be of interest.

          Then you should have one instance of your controller and use signals and slots with these widgets.

          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