Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [QT BUG] QColorDialog will not set the options i choose.
Qt 6.11 is out! See what's new in the release blog

[QT BUG] QColorDialog will not set the options i choose.

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Leon
    wrote on last edited by
    #1

    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(1)!

    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::DoNotUseNativeDialog)@

    i always get this not native dialog:
    !http://i.imgur.com/gygwcSL.png(2)!

    So confused on how to achive the native dialog.. :/

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which linux flavor are you using ? What desktop environment ? (I would guess ubuntu/gnome)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Leon
        wrote on last edited by
        #3

        [quote author="SGaist" date="1377517393"]Hi,

        Which linux flavor are you using ? What desktop environment ? (I would guess ubuntu/gnome)[/quote]

        Yes i am on Ubuntu 13.04

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you took a look at the "bug report system":http://bugreports.qt-project.org/issues to see if it's something known ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • L Offline
            L Offline
            Leon
            wrote on last edited by
            #5

            [quote author="SGaist" date="1377522343"]Did you took a look at the "bug report system":http://bugreports.qt-project.org/issues to see if it's something known ?[/quote]

            "https://bugreports.qt-project.org/issues/?jql=text~"colordialog"

            None.

            I report this as a qt bug then
            https://bugreports.qt-project.org/browse/QTBUG-33181

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved