Important: Please read the Qt Code of Conduct -

How to set the size of image in QWidget?

  • 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.

Log in to reply