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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:49:07+00:00 2026-06-10T10:49:07+00:00

My application window can be resized to zero-size. I do not want to restrict

  • 0

My application window can be resized to zero-size. I do not want to restrict the minimum window size. There are several widgets (QLineEdits, QLabels, QPushButtons) layoutet by a HBoxLayout.

At first, all widgets in the HBoxLayout were resized without respecting their sizeHint when the window was very small.
Then I used setFixedSize(sizeHint) on them. Now they do not get shrunk below their sizeHint, but instead they start overlapping when the window is very small.

What I want is what Thunderbird does (screenshots attached):
It smoothly hides the widgets by moving them out of the window border. Their size is unchanged.

How can I achieve that with the Qt Layouting system?

my application: normal window
https://i.stack.imgur.com/WLgLy.png

my application: small window
Dueling Network Screenshot
Thunderbird: normal window
View post on imgur.com
Thunderbird: small window https://i.stack.imgur.com/ZyQou.png
  • 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-10T10:49:09+00:00Added an answer on June 10, 2026 at 10:49 am
    1. Put your widgets into a QScrollArea
    2. Set the vertical and horizontal scroll bar policy’s to AlwaysOff
    3. Layout your Scroll area as you wish

    Done & done

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

Sidebar

Related Questions

How can I resize my application's window when the taskbar's size has changed? For
Basically when user resizes my application's window I want application to be same size
We have an application that has a primary window, it can launch multiple other
I have a console application from which I create a window. I can render
How can I restrict my .net based windows application to run only when the
I want to change the imposed Windows maximum width that a window can be
I want to update my NSOpenGLView window when texture size is changed. Thats OK.
In GTK (or pygtk or gtkmm...) How can I detect that an application window
When I resize Window of the WPF application, all textboxes are also resized. The
I want my SWF to fill the browser window, but it's not working in

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.