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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:47:20+00:00 2026-06-15T21:47:20+00:00

I know how to view a image in the full window from Qt jpg

  • 0

I know how to view a image in the full window from Qt jpg image display but I need to display the image 200x300px size. that means I need the program to read the jpg image and rezise it and view it in a small box placed in the side of the window. I dont have eny idea which widget I should place for this and the method to do this. can somebody point out me some tutorial or give in simple advice.

thank you.

  • 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-15T21:47:21+00:00Added an answer on June 15, 2026 at 9:47 pm

    After you load the image, for example:

    QImage img;
    img.loadFromData(data);
    

    use QImage::scaled() to create a scaled copy of it and assign it to itself. Example:

    img = img.scaled(200, 300, Qt::KeepAspectRatio, Qt::SmoothTransformation);
    

    Adjust the flags as preferred (see the QImage::scaled() documentation on the available flags.)

    You can then display it. The easiest way is to set it as a pixmap on a QLabel:

    QLabel label;
    label.setPixmap(QPixmap::fromImage(img));
    

    You might want to set a fixed size for the QLabel, but this depends on how you handle your overall layout in your application.

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

Sidebar

Related Questions

I know there are ways to view an image full screen in Flash, but
I am using full browser width height jquery blockUI to display selected image from
I know how to render a normal UIView to a bitmap image: UIGraphicsBeginImageContextWithOptions(view.bounds.size, NO,
I am developing image redraw app. i know the center of one image view
I know that a view can only be a subview of one superview, so
I know how to view all changes in a changeset.. But let's say you
I am using an activity to display a Full image and user has a
I am working on a task to enable image uploading and auto-scaling(from full sized
I am having a Tooltip (larger image view) that is being positioned via e.pageX
I have a project in which I need to display thumbnails of image stored

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.