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

  • SEARCH
  • Home
  • 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 8783783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:54:57+00:00 2026-06-13T20:54:57+00:00

I have dragged and dropped a widget within a parent widget in the designer

  • 0

I have dragged and dropped a widget within a parent widget in the designer within qt creator.

It has an arbitrary fixed position rectangle within its parent.

I want to modify it such that it will conform to its parents dimensions. That is it should be “maximized” within its parent.

What button in the designer do I press to do this?

  • 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-06-13T20:54:58+00:00Added an answer on June 13, 2026 at 8:54 pm

    This is what layouts are for. See this for an explanation.

    I’m not particularly familiar with Qt Designer, but the general process is to create a layout (QHBoxLayout would work for you) for the parent widget, and add the child widget to that layout.

    Another thing to consider is that, in your case, you could simply set the child widget to be the central widget of the QMainWindow:

    this->setCentralWidget(theMaximizedWidget);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have dragged a node from TreeView and dropped it by alerting the Text
I have 2 pictureboxes: pb1 and pb2. Pb1 can be dragged and dropped, pb2
I have a set of items that can be dragged / dropped using Dojo
I have 2 html elements, 1. <div class=drag>..example.jpg..</div> contains images that can be dragged/cloned/dropped.
Using the Report designer in Visual Studio, I dragged and dropped a an Image
I have dragged'n'dropped a file on the textarea. I have the file object in
I have a form that accepts files to be dragged and dropped on, as
I have a draggable element , that when its dropped onto the target, it
I have a pygame window that I want to know when a file has
i have a small program where an element is draged and dropped, when the

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.