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. QDockWidget and QDialog

QDockWidget and QDialog

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 4.4k 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.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by
    #1

    Can I use QDockWidget inside a QDialog? I seed that I can't move a QDockWidget if it is embedded in a QDialog. It works only in QMainWindow.

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    mrjjM 1 Reply Last reply
    0
    • mrdebugM mrdebug

      Can I use QDockWidget inside a QDialog? I seed that I can't move a QDockWidget if it is embedded in a QDialog. It works only in QMainWindow.

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @mrdebug
      Hi , Docks seems to want a CentralWidget to dock around so it wants QMainWindow.
      However, I did managed to insert a QMainwindow into a other widget grid layout
      so I could have Docks where I wanted.

      I assume you can do the same for Dialog if you create a new QMainwindow and give dialog as parent and
      insert into a layout. Remember to call setCentralWidget so it has one.
      I cant promise it works for Dialog also but if I can have QMainwindow in a QMainwindow, the odds are good :)

      1 Reply Last reply
      1
      • mrdebugM Offline
        mrdebugM Offline
        mrdebug
        wrote on last edited by
        #3

        I've tried but without a nice end.
        Is QDockWidget officially supported by QDialog or not?
        In other words is this a bug?

        Need programmers to hire?
        www.labcsp.com
        www.denisgottardello.it
        GMT+1
        Skype: mrdebug

        mrjjM 1 Reply Last reply
        0
        • mrdebugM mrdebug

          I've tried but without a nice end.
          Is QDockWidget officially supported by QDialog or not?
          In other words is this a bug?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @mrdebug
          Hi, only QMainWindow is supported.
          So if inserted QMainWindow into other widgets
          and its does strange things. It most likely not a bug
          but just not supported.
          So when you inserted QMainWindow into Dialog , what was the issues /didnt work ?

          1 Reply Last reply
          0
          • mrdebugM Offline
            mrdebugM Offline
            mrdebug
            wrote on last edited by
            #5

            Works. I hoped to find a way using only the mouse without to have to write code :)

            Need programmers to hire?
            www.labcsp.com
            www.denisgottardello.it
            GMT+1
            Skype: mrdebug

            mrjjM 1 Reply Last reply
            0
            • mrdebugM mrdebug

              Works. I hoped to find a way using only the mouse without to have to write code :)

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @mrdebug
              Well Designer is not so crazy
              about inserting MainWindows into dialogs :)
              You might be able to promote a Widget to QMainwindow but still need some code to set
              centralwidget.

              1 Reply Last reply
              0
              • mrdebugM Offline
                mrdebugM Offline
                mrdebug
                wrote on last edited by
                #7

                Windows, Linux, Mac: three different behaviours.
                On Linux all is perfect.
                On Mac is not possible to resize the dock (already submit as bug).
                On Windows there the resize button disappear when the dock is out.

                Need programmers to hire?
                www.labcsp.com
                www.denisgottardello.it
                GMT+1
                Skype: mrdebug

                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