Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to implement two separate widgets
Forum Updated to NodeBB v4.3 + New Features

How to implement two separate widgets

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 3 Posters 819 Views 2 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.
  • B Offline
    B Offline
    BKBK
    wrote on last edited by
    #1

    I am creating a strip chart application. It is a tool to be used during development of other software. There are two logical sections:

    1. The controls where the user selects the parameter to display, upper and lower limits, time intervals, etc.
    2. The actual chart itself, the plotted points.
      After the strip chart has been started and configured, the user would like to hide the controls to provide more real estate on the monitor. Only the plotted points section is to be displayed.
      Can this be implemented?
    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Yes you can easy hide the other widgets if needed.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BKBK
        wrote on last edited by
        #3

        Cool. What class or tool is used to create two widgets on the screen. Each one can be moved independently of the other. None of my searches were sufficiently sophisticated to solicit the answer.
        Buttons in widget "control" will control how widget "strip_chart" behaves, but once strip_chart is running a button in "control" will hide "control." And/or a toggling button in strip_chart will do the same. That provides more room on the monitor so we can watch and control other stuff while the strip chart is plotting the data.

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

          Hi,

          Are you thinking about something like QMdiArea ?

          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
          0
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            There is also
            Dock Widgets
            http://doc.qt.io/qt-5/qtwidgets-mainwindows-dockwidgets-example.html

            However, its not 100% clear for how the layout is.
            Do you a picture or a some sort of design to show?

            Also when you say 2 widgets on the screen.
            Is that like 2 separate windows, or inside same app ?

            1 Reply Last reply
            0
            • B Offline
              B Offline
              BKBK
              wrote on last edited by
              #6

              I cannot copy from my work computer to my internet computer. If I can get Qt Designer working at home I will draw it up and paste in an image. That will be tonight's task at home, getting QT to run on my Windows box. I am using Centos Linux here at work. In the meantime:

              Imagine widget A with size 600 wide by 300 high. It has a set of radio buttons, push buttons, line edits, etc. When I set values in A it creates SIGNALS directed to SLOTS in B. A will need at least 10 controlling widgets. Example: A spin box or line edit in A can change the update rate of the strip chart, how fast it scrolls.

              Imagine widget B with the same size just below A. Each has a border and can be grabbed and moved with the mouse. B is where the strip chart graphics will be displayed, done in Open Gl. It has a pushbutton labeled "Hide A" that will cause widget A to be hidden. When pressed it changes its name to "Show A" which does the obvious.
              I am quite new at both Qt and OpenGL so maybe this question is more simple that it at first appears. Maybe not. I get to jump in on the deep end.

              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