title: Call Dialog from CPP (c++) file to QML in QT Mobile (iOS and Android)
body: <p>QML code:</p>
  
  <pre><code>Dialog {
      id: dialog
      objectName: dialog
      modal: true
      standardButtons: Dialog.cancel | Dialog.Ok
  
      title: qsTr("About")
  
      Label {
          text: "Lorem ipsum..."
      }
  }
  </code></pre>
  
  <p>CPP </p>
  
  <pre><code>void LoginPage::checkLogin(QString username, QString password)
  {
      if(username == "username" &amp;&amp; password == "password")
      {
  
      }
      else
      {
          QObject *rect = findChild&lt;QObject*&gt;("dialog");
          //this solution don't work
      }
  }
  </code></pre>
  
  <p>I need to call dialog from cpp, I searched online but I not found solutions.
  My target is open Dialog error from cpp file.
  Any ideas ?</p>