diff --git a/src/QtMacButton.mm b/src/QtMacButton.mm index ee5f37cd0..66852b70a 100644 --- a/src/QtMacButton.mm +++ b/src/QtMacButton.mm @@ -243,8 +243,10 @@ void QtMacButton::setText(const QString &text) void QtMacButton::setImage(const QPixmap &image) { Q_ASSERT(qtw); - if (qtw) + if (qtw) { [qtw->nsButton setImage:fromQPixmap(image)]; + [qtw->nsButton setAlternateImage:fromQPixmap(image)]; + } } void QtMacButton::setChecked(bool checked) diff --git a/src/QtMacPopUpButton.mm b/src/QtMacPopUpButton.mm index 6fab36ecf..965830287 100644 --- a/src/QtMacPopUpButton.mm +++ b/src/QtMacPopUpButton.mm @@ -217,8 +217,10 @@ void QtMacPopUpButton::setText(const QString &text) void QtMacPopUpButton::setImage(const QPixmap &image) { Q_ASSERT(qtw); - if (qtw) + if (qtw) { [qtw->nsPopUpButton setImage:fromQPixmap(image)]; + [qtw->nsPopUpButton setAlternateImage:fromQPixmap(image)]; + } } void QtMacPopUpButton::setChecked(bool checked)