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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:57:48+00:00 2026-05-20T17:57:48+00:00

I use Qt.4.6 in Nokia phone. My window, derived from QWidget, has set nontiled

  • 0

I use Qt.4.6 in Nokia phone.

My window, derived from QWidget, has set nontiled background:

setStyleSheet("border:none; margin: 0px; background-image: url(:/images/background.png);");

In my vertical layout there I have 3 QLabels. I want the middle one that contains image to be resized to fill all available space. If it is not stretched then the background image get duplicated on the background of the label, making an ugly effect.

How can I force it to expand? Or at least how to find out the maximum available size to set with setMinimumHeight().

  • 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-20T17:57:49+00:00Added an answer on May 20, 2026 at 5:57 pm

    You can set the size policy of the label to expand it.

    ui->yourLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
    

    See the official documentation for more details about sizePolicy.

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

Sidebar

Related Questions

I'm trying to use Qt Quick Components for Desktop from http://labs.qt.nokia.com/2011/03/10/qml-components-for-desktop/ I can build
I upload a file from a Nokia N97 phone to server, everything works fine
I installed CODA on my Nokia 5800, and set it to use WLAN instead
I have downloaded qt-win-opensource-4.7.0-vs2008.exe from nokia site and use it when I build my
What language should I use to develop programs for Nokia/Samsung/LG/Sony Ericsson phones? (Both Symbian
I am trying to stream microphone input from my Symbian device (Nokia N8) to
On Vista Ultimate (No SP), I installed Qt Creator 1.3 from Nokia, using the
I want to use NOkia blue for some of my controls for an app
I'm designing this JME application for a Nokia phone and when designing the MIDlet
I am running several apps that use Google Maps. On Android and Windows Phone

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.