title: QDialog return value, Accepted or Rejected only?
body: <p>How to return custom value from a <code>QDialog</code>? It's <a href="http://doc.qt.io/qt-5/qdialog.html#return-value-modal-dialogs" rel="noreferrer">documented</a> it returns </p>
  
  <pre><code>QDialog::Accepted   1
  QDialog::Rejected   0
  </code></pre>
  
  <p>respectively if user press <code>Ok</code> of <code>Cancel</code>.</p>
  
  <p>I'm thinking in a custom dialog presenting i.e. three check boxes to allow user to select some options. Would <code>QDialog</code> be appropriate for this?</p>