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. How to add a widget to QMainwindow in qt creator
Forum Updated to NodeBB v4.3 + New Features

How to add a widget to QMainwindow in qt creator

Scheduled Pinned Locked Moved Unsolved General and Desktop
43 Posts 5 Posters 13.1k 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.
  • V veera
    10 Oct 2017, 12:24

    please find my screen shots these dialog boxes are opening separately ...i don't want to open it separately need to join them to main window as well as it will not allow to do anything after closing window only we can open another window.....0_1507638234622_mygui12.png 0_1507638243458_mygui45.png 0_1507638250188_mygui7.png

    J Offline
    J Offline
    jsulm
    Lifetime Qt Champion
    wrote on 10 Oct 2017, 12:55 last edited by
    #41

    @veera If you don't want to open them as windows than don't do it. It looks like you're using dialogs - dialogs are per definition windows! Add those widgets to their parent widget.

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

    1 Reply Last reply
    0
    • V Offline
      V Offline
      veera
      wrote on 10 Oct 2017, 13:14 last edited by
      #42

      Qt designer form class is widget .....after that how to add widgets to their parent widget ?

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kenchan
        wrote on 12 Oct 2017, 08:16 last edited by
        #43

        Well... every widget has the setParent(QWidget *parent) function. is that not working for you?

        1 Reply Last reply
        0

        41/43

        10 Oct 2017, 12:55

        • Login

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