Iám newbe,

Maby a stuppid question where put i the width and height of the pixmap.

Qt Code:
  1. QPixmap erf = (QPixmap(":/images/erf.png");
  2. freeslabel->setPixmap(erf); // here
  3. freesLabel->setProperty("imagePath", ":/images/erf.png");
  4.  
  5. imgfmt->setName(freesLabel->property(":/images/erf.png").toString());
  6. imgfmt->setWidth(freesLabel->pixmap()->width()); //or here
  7. imgfmt->setHeight(freesLabel->pixmap()->height()); //or here
To copy to clipboard, switch view to plain text mode