Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-175

QtQuick ColorDialog.color not set when accepted signal is emitted.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Next Major Release
    • Other
    • None
    • MinGW 32bit/windows7x64
      android Nexus 10 API18/19

      The following code ( in qdoc: .../Qt5.2.0/5.2.0-beta1/mingw48_32/doc/qtquickdialogs/qml-qtquick-dialogs-colordialog.html) works, but produces a wrong output.
      The optput is always from the previews result.

      import QtQuick 2.1
      import QtQuick.Dialogs 1.0

      ColorDialog {
      id: colorDialog
      title: "Please choose a color"
      onAccepted:

      { console.log("You chose: " + colorDialog.color) Qt.quit() }

      onRejected:

      { console.log("Canceled") Qt.quit() }

      Component.onCompleted: visible = true
      }

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            pat PP
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes