QMessageBox.setIconPixmap(QLabel.pixmap()) ?
Solved
General and Desktop
-
@sonichy said in QMessageBox.setIconPixmap(QLabel.pixmap()) ?:
@JKSH
error: reference to type 'const QPixmap' could not bind to an rvalue of type 'const QPixmap *'const QPixmap &pixmap = ui->label_avatar1->pixmap();
QLabel::pixmap()
returnsconst Pixmap *
, notconst Pixmap &
Do you know how to use pointers and references?
-
@sonichy said in QMessageBox.setIconPixmap(QLabel.pixmap()) ?:
Solved !
👍
Please mark as solved (Click "Topic Tools" on the top-right or bottom-right of this page)