QPixmap fromImage ( const QImage & image, Qt::ImageConversionFlags flags = Qt::AutoColor )
QImage *my_bmp = new QImage("C:\\Qt\\my_projects\\qtsdk\\proj\\test.bmp","bmp"); QLabel *my_label = new QLabel(); QPixmap *myPixmap = new QPixmap(); myPixmap->fromImage(&my_bmp,Qt::ImageConversionFlags flags = Qt::AutoColor); my_label->setPixmap(&myPixmap);
error: expected primary-expression before "flags"error: no matching function for call to `QLabel::setPixmap(QPixmap**)'
C++ (Qt)QImage my_bmp("C:\\Qt\\my_projects\\qtsdk\\proj\\test.bmp","bmp");QLabel *my_label = new QLabel();QPixmap myPixmap(QPixmap::fromImage(my_bmp,Qt::AutoColor));my_label->setPixmap(myPixmap);