Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-33181

QColorDialog will not set the options i choose.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.1.0
    • None
    • Ubuntu 13.04

    Description

      In the standdialogs example with code

      qDebug() << colorDialogOptionsWidget->value();
      const QColorDialog::ColorDialogOptions options = QFlag(colorDialogOptionsWidget->value());
      const QColor color = QColorDialog::getColor(Qt::green, this, "Select Color", options);

      and “do not use native dialog” option unchecked, i get this colordialog and the output of 0

      http://i.imgur.com/rUV8PLR.png

      With the same EXACT code in my application

      QColorDialog::ColorDialogOptions options = QFlag(0);
      QColor color = QColorDialog::getColor(Qt::green, this, "Select Color", options);

      even if i put

      QFlag(QColorDialog::NoButtons, QColorDialog::ShowAlphaChannel)

      i always get this non native dialog:

      http://i.imgur.com/gygwcSL.png

      Attachments

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

        Activity

          People

            peppe Giuseppe D'Angelo
            leon Leon Vitanos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes