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. Dynamic Creating forms

Dynamic Creating forms

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.9k 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.
  • Dan3460D Offline
    Dan3460D Offline
    Dan3460
    wrote on last edited by
    #1

    Sorry, I'm new at this. I just recently started seriously working on QT. I'm creating an application to monitor several circuits, my first attempt used a form where i can read the voltage of each circuit and display it on the screen. Worked fine. Now the problem is that i may not know how many sensors are connected to the micro controller, I know that i can have the micro controller tell the application the number of sensors, i want to use this number to create the necessary windows to display the voltage of each sensor.
    The main application is constantly checking for data on the com port this data represents the voltages of the sensors on each circuit.
    I understand that i will not get step by step instructions, i just need a little guidance in how to do this and where to get information about doing it.

    Thanks for the help.

    jsulmJ 1 Reply Last reply
    0
    • Dan3460D Offline
      Dan3460D Offline
      Dan3460
      wrote on last edited by
      #2

      Updating the thread if anyone is interested.

      Searching the internet i fund the following article [http://sys-exit.blogspot.com/2013/02/qt-menu-mdi-child-window-example.html](link url) which describes how to create sub windows on a MDI area. Using that information i was able to dynamically create windows that are within the main window. Now i have to learn how to communicate with the sub windows.

      artwawA 1 Reply Last reply
      1
      • Dan3460D Dan3460

        Updating the thread if anyone is interested.

        Searching the internet i fund the following article [http://sys-exit.blogspot.com/2013/02/qt-menu-mdi-child-window-example.html](link url) which describes how to create sub windows on a MDI area. Using that information i was able to dynamically create windows that are within the main window. Now i have to learn how to communicate with the sub windows.

        artwawA Offline
        artwawA Offline
        artwaw
        wrote on last edited by
        #3

        @Dan3460 Hi,
        if you mean passing the data I would recommend signals/slots connections.

        For more information please re-read.

        Kind Regards,
        Artur

        1 Reply Last reply
        0
        • Dan3460D Dan3460

          Sorry, I'm new at this. I just recently started seriously working on QT. I'm creating an application to monitor several circuits, my first attempt used a form where i can read the voltage of each circuit and display it on the screen. Worked fine. Now the problem is that i may not know how many sensors are connected to the micro controller, I know that i can have the micro controller tell the application the number of sensors, i want to use this number to create the necessary windows to display the voltage of each sensor.
          The main application is constantly checking for data on the com port this data represents the voltages of the sensors on each circuit.
          I understand that i will not get step by step instructions, i just need a little guidance in how to do this and where to get information about doing it.

          Thanks for the help.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Dan3460 Well, you can create as many windows/widgets as you like at runtime. How exactly to do this depends on how you want to present the information to the user. Do you really want to use MDI? This concept as actually outdated.
          If you want to show same type of information then you can simply create a custom widget for it and then create as may instances of it as needed. Then put each instance in a layout and call show().

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          3

          • Login

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