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 dock the QDockwidget in the center of the from in code and also let the user do it with the gui?
Forum Updated to NodeBB v4.3 + New Features

How to dock the QDockwidget in the center of the from in code and also let the user do it with the gui?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.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
    MathSquare
    wrote on last edited by
    #1

    how to dock the QDockwidget in the center of the from in code and also let the user do it with the gui?

    I did have trouble wording this question.

    Thank you from taking you time to read this.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tzander
      wrote on last edited by
      #2

      Did you check the API docs for QMainWindow?
      The adding of the dock can be done there.

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

        No
        [quote author="Thomas Zander" date="1360581277"]Did you check the API docs for QMainWindow?
        The adding of the dock can be done there.[/quote]

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #4

          QDockWidgets exist in a band around the outside of the QMainWindow's central widget. The central widget cannot be a QDockWidget using any documented mechanism I am aware of.

          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