Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7406779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:36:33+00:00 2026-05-29T05:36:33+00:00

I like the default handling/layout that adding a dock widget to the main window

  • 0

I like the default handling/layout that adding a dock widget to the main window with addDockWidget() provides. Specifically the following:

  1. Uses a QSplitter (I assume) which allows user to resize 2 dock widget and central widget.
  2. Cannot shrink the dock widget below it’s minimum size hint.
  3. When dragging the size of the entire window the dock widget stays it’s original size (i.e. it’s different than dragging the splitter). Thus, the central widget grows when dragging the entire window instead of both dock and central widget growing.

I’d like to mimic this behavior, but on a QDialog since I can’t just call addDockWidget(). I’m not really concerned about being able to drag the dock widget around and drop it on other corners, etc. I just want a QLayout setup that can do the above 3 things.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:36:34+00:00Added an answer on May 29, 2026 at 5:36 am

    You can use a QMainWindow instead of a QDialog in order to get dockwidget functionality for a dialog. You should not notice any difference in performace between QMainWindow and QDialog.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Often i like default android style defined for some widget. Often i like to
I have a heroku app, that's like the default, but I want to deploy
I would like to change visual studio's default configurations (Debug,Release). That is, change the
I'd like to remove all default values that have been setup in a particular
We have a website that uses a bog-standard default sitemap with security trimming as
Auto-binding of request params seems like default behaviour, but I can't find a lot
On some .NET driven sites URLs don't end with asp.net page names, like default.aspx,
I want to be able to have default text like Enter content here... appear
I'd like to change the Default altFormat , but I can't seem to get
I'd like to change the default customer invoice print to something else. Add an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.