Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
5.14.2
Description
Looks like the documentation is out of date. The examples are incorrect as is the "buttons" property documentation:
MessageDialog { text: "The document has been modified." informativeText: "Do you want to save your changes?" buttons: MessageDialog.Ok | MessageDialog.Cancel onAccepted: document.save() }
MessageDialog.Ok etc. are not available, one must use StandardButton.Ok etc. instead:
MessageDialog { text: "The document has been modified." informativeText: "Do you want to save your changes?" buttons: StandardButton.Ok | StandardButton.Cancel onAccepted: document.save() }
I can't understand why the important controls like FileDialog, MessageDialog etc. are still considered as experimental when their older counterparts in QtQuick.Dialogs still depend on the long deprecated QtQuickControls 1.
Also I consider the native menu support provided by qt.labs.platform as essential for desktop applications.