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. Embedd UI form into mainwindow
Forum Updated to NodeBB v4.3 + New Features

Embedd UI form into mainwindow

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

    Hi Folks,

    I would like to create a project that has a mainwindow with 4-5 same UI section. I thought that I create a new UI form and create the necessary instances into the appropriate section (there are QWidget object), but I don't know, how I do it...
    Can anyone help me?

    Regerds,
    Norbert

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Seba84
      wrote on last edited by
      #2

      You're question is not clear. What does it means "a mainwindow with 4-5 same UI section." ?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        moravas
        wrote on last edited by
        #3

        Hi,

        The concreate example: I would like to create a UI for a digital osciloscope. As you can see, there are 4-5-6... etc chanels, that are same. I thought that I have one mainwindow with one "display widget" that displays the measured signals and 4 insatnces of same UI form.
        But my problem is how can I embedd my costum widgets onto my mainwindow view?

        Regards,
        Norbert

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

          Hi,

          You can use your channel widget just like any other widget from Qt's library. You can create a display widget that contains e.g. a QGridLayout and put your channels in it. Then set the display widget as central widget of your QMainWindow

          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

          • Login

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