how to increase the size of QICon send to ::data method of QtreevIew
HI have a QtreeView and I have to send merge two images in a single QIcon and send the same ::data for Decoration role but , is it possible to increase the size of the ::icon send in ::data for Decoration role
Since this question is likely related to this thread: why not return your QPixmap directly rather than create an icon from it ?
In this case I have to reduce the size of QPixmap . The actula size of image is 24 X 24 and I want to be 16 x 16 . I tried
but it is not working
HI, the error is that scaledToHeight returns the modified image.
And you dont assign it back to other image.
QImage small = image1->scaled(16, 16,Qt::KeepAspectRatio);