Hi! I'm newbie in Qt mobile! I have a problem when i load an image into a QPushButton. I loaded it! But the size of image is larger than the size of button! I want to reduce the size of image to fill the button! This is my code :
Qt Code:
  1. // Set image for button
  2. QPixmap *image= new QPixmap("C:\\Symbian\\Project\\Images\\mypic.png");
  3. QIcon icon(*image);
  4. QSize iconSize(image->width(), image->height());
  5. ui->button->setIcon(icon);
  6. ui->button->setIconSize(iconSize);
To copy to clipboard, switch view to plain text mode 
Help me ! Thanks a lot!