The dialog has no icon
-
QML Application: the dialog and message dialog has different window icon:

As it shows, in the left side, the dialog which is constructed from
import QtQuick.Dialogs 1.3has not window Icon, while the message dialog in the right side got the icon that Application has. And I want to get the right icon in dialog, so what can achieve that?Codes are here:
Dialog { title: "This is a dialog" Text { text: "This is a dialog" } modality: Qt.NonModal Component.onCompleted: visible = true } MessageDialog { title: "This is a message dialog" modality: Qt.NonModal visible: true text: "It's so cool that you are using Qt Quick." onAccepted: { console.log("And of course you could only agree.") Qt.quit() } Component.onCompleted: visible = true } -
Your question is possibly a duplicate of;