QtQuick.Dialogs: 2 question
-
1-)
for this example:
http://qt-project.org/doc/qt-5/qml-qtquick-dialogs-messagedialog.html#standardButtons-propyes and yestoall has same signal.how to handle yes and yestoAll button for diffrerent action.
same is no and notoall too.2-)i cannot manage "standardButtons" property from c++. get error like this "undefined variable <StandardButton.Yes>" . to doing this i make a workaround such like:
cpp:
@root->setProperty("str_button","StandardButton.Yes | StandardButton.No"); // workaround. see qml file.@
qml:
@
property string str_button:"StandardButton.OK"
standardButtons :Number(eval(str_button)) // TODO
@
regards.