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. Handling Dock Widget in Layout

Handling Dock Widget in Layout

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 1.5k 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.
  • S Offline
    S Offline
    sush123
    wrote on last edited by
    #1

    Hi,

    Can anyone help me with handling of multiple dock widget in one main window where in mainwindow i have Layout with different size and loading this dock widget Dynamically.
    Right now it is fixed I need to have dock property for that widget to move here and there based on user requirement.

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

      Hi,

      Do you mean change the side of a QDockWidget programatically ?

      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
      • S Offline
        S Offline
        sush123
        wrote on last edited by
        #3

        i mean i have fixed layout in one Ui file and i am loading this dock widget dynamically into the layout, and based on user convenience they can shift that dockwidget and place somewer else.

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

          Are you using QML or Widgets ?

          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
          • S Offline
            S Offline
            sush123
            wrote on last edited by
            #5

            Widgets only not QML

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

              QMainWindow already handles undocking and re-docking of QDockWidget, so I'm not sure what you are after.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              S 1 Reply Last reply
              0
              • G Offline
                G Offline
                gnc50
                Banned
                wrote on last edited by gnc50
                #7
                This post is deleted!
                1 Reply Last reply
                -1
                • SGaistS SGaist

                  QMainWindow already handles undocking and re-docking of QDockWidget, so I'm not sure what you are after.

                  S Offline
                  S Offline
                  sush123
                  wrote on last edited by
                  #8

                  @SGaist

                  yes i did same approach its working fine

                  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