All,
In Qt C++ lib, we can use dialog's exec() function and check it's return code to know whether the dialgo is accepted or rejected. In this way, I can get user's information easily by these code:
ret = dialog.exec();
if(ret == QDialog::Accepted)
{
// update information and do something
}
But I can not find exec() in QML. I can find open() function of dialog in QML, but it do not wait until dialog closed, and I can not find when to update information from dialog. Can anyone tell me how to use the modal function in QML?
Bookmarks