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 7190897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:36:51+00:00 2026-05-28T19:36:51+00:00

I have a dialog containing a QGridLayout with three columns. One of the rows

  • 0

I have a dialog containing a QGridLayout with three columns. One of the rows contains a QComboBox, a QPushbutton, and another QPushButton in each column respectively. I want each column to be the same size and scale equally.

Unfortunately, the QComboBox is setting its size hint too large, to be big enough to contain its widest item. It appears there’s no SizeAdjustPolicy called “DoNotAdjustAndStopBeingAnnoying” or similar, so I’m not sure if there’s anything I can set to force it to stop doing this adjusting.

I know I can do this in code fairly easily, but I would prefer to keep this sort of detail in the .ui file. Is there any way I can do this in Qt 4.8 without writing any code?

  • 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-28T19:36:53+00:00Added an answer on May 28, 2026 at 7:36 pm

    I was able to solve this by setting the horizontal component of the sizePolicy for the combo box to Ignored. That resulted in the combo box becoming able to be shrunk further than the buttons, so I changed them to also use Ignored and set the horizontal minimumSize for all 3 of the controls. Now they all start out at the same size, and are sized up and down with the layout equally, stopping at an appropriate minimum.

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

Sidebar

Related Questions

I have set up a dialog with several tabs. One of these contains twenty
I have an MFC dialog containing a dozen or so buttons, radio buttons and
I have an activity with style Dialog, containing two EditTexts. However, only the first
I have a dialog where each entry in a JTree has its corresponding options
I have a dialog that I want to place within another dialog and position
I have a link which opens up a Jquery UI Dialog containing an iframe.
I have an ATL application with a dialog containing a TAB control. The App
I want to have a dialog containing 3 views 1. title with black background
I have a JQuery Dialog, with a control inside containing textboxes, I also have
I have a modal dialog box which is containing search field. when I select

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.