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. QCOlorDialog: is it possible to improve the display of the color selection?

QCOlorDialog: is it possible to improve the display of the color selection?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qcolordialogusability
7 Posts 2 Posters 2.0k Views
  • 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.
  • A Offline
    A Offline
    Alain38 0
    wrote on 16 Feb 2018, 12:18 last edited by
    #1

    I'm just facing to a stupid problem. I have displayed a QColorDialog with an initial color that was black. Then, I clicked "on the rainbow rectangle" to select another color. But current color were still black. I have lost a lot of time before to understand that my actions just changed HS values, letting V value to 0. So I also had to move the vertical slider that manages the V value.

    Unfortunately, my users will never understand this. So, I need that the HS rectangle displays colors using the current V value, or to use another color representation for color selection (wheel, ...).

    Do you know if it is easy to do?

    Thanks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 16 Feb 2018, 22:36 last edited by
      #2

      Hi,

      What version of Qt are you using ?
      On what OS ?
      With which compiler ?

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

      A 1 Reply Last reply 28 Feb 2018, 13:45
      0
      • S SGaist
        16 Feb 2018, 22:36

        Hi,

        What version of Qt are you using ?
        On what OS ?
        With which compiler ?

        A Offline
        A Offline
        Alain38 0
        wrote on 28 Feb 2018, 13:45 last edited by
        #3

        Hi @SGaist,
        I'm currently using QT5.6.3 with Visual Studio 2013. under Windows 10.

        PS: sorry for the delay for my response. But I received no mail about your post ("Watching" is enabled so I do not understand).

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 28 Feb 2018, 22:09 last edited by
          #4

          How does it behave if you set a color where you explicitly set the HSV values ?

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

          A 1 Reply Last reply 1 Mar 2018, 15:28
          0
          • S SGaist
            28 Feb 2018, 22:09

            How does it behave if you set a color where you explicitly set the HSV values ?

            A Offline
            A Offline
            Alain38 0
            wrote on 1 Mar 2018, 15:28 last edited by
            #5

            Hi @SGaist,
            The problem I have is not a question of using HSV. The problem is more a question of GUI. QColorDialog, on Windows, offers an interface of color selection that requires two step:

            • In a first step you select a color on a "rainbow". This rainbow only covers the HS values,

            • In a second step you select "color intensity" using a slicer. This slicer covers the V value.

            The fact that it is a two-step process is perturbating for lambda-users. The typical case I encountered is the following:

            I opened the QColorDialog with black as current color. So, to change the color, the natural approach of the user is to "click on the rainbow". But in fact this changed nothing on the color. Because V value stays at 0 (value from black), and only HS changes. So in RGB it is still a black color.

            See the below image. On it the user might suppose that he/she has selected a green color. But in fact it is still black.
            0_1519918077845_QColorDialog.PNG

            So what I would have is that the "rainbow" part reflect the V too (even if it does not change it). So from an initial back color, the rainbow will be black. By this way the user might understand that it has to change the color intensity too (and first when the initial color is black).

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 1 Mar 2018, 21:30 last edited by
              #6

              That's the native windows colour dialog not Qt's own thus it's a bit of a Windows specific issue.

              By the way, why are you using black as a staring colour ?

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

              A 1 Reply Last reply 2 Mar 2018, 10:54
              0
              • S SGaist
                1 Mar 2018, 21:30

                That's the native windows colour dialog not Qt's own thus it's a bit of a Windows specific issue.

                By the way, why are you using black as a staring colour ?

                A Offline
                A Offline
                Alain38 0
                wrote on 2 Mar 2018, 10:54 last edited by
                #7

                Hi @SGaist,
                About starting with black color, it is just because my application provides a color gradient functionality. By default it is between white and black. But user will be able to change the two extrem colors. So, if he/she decides to change the final color, default initial color is black, just in case he/she clicks on OK without doing anything else.

                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