Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to set the size of image in QWidget?
Forum Updated to NodeBB v4.3 + New Features

How to set the size of image in QWidget?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 124 Views
  • 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.
  • P Offline
    P Offline
    pvirk
    wrote on last edited by
    #1

    Hello,

    I have QWidget that promoted to QVTKOpenGLNativeWidget where I am loading images.
    But the image appears at the center of QWidget. I set size of QWidget with 512512.
    I am loading dicom images which is also 512
    512 size in QWidget.
    I want to know how to change the image size according to QWidget, so that it can fit into it completely.
    I need it so that, I can get correct x, y coordinates of image by clicking on it, and that helps me for further image processing.
    Any kind of help will be appreciated.
    Thanks in advance.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved