Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Show image threw QLabel without resizing the image

    General and Desktop
    2
    2
    348
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mandruk1331
      mandruk1331 last edited by

      Is there a way to show the image in Qlabel and save it's proportions, when I load an image to QLabel it shows some part of the loaded image, I tried using QImage's scaled function but it changes the photo size. Is there a way to properly shot the image in QLabel?

      Mandruk1331

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Do you mean having your QLabel the same size of your image ? If so, can you show how you are setting up your QLabel ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post