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 doesn't preview alpha
Qt 6.11 is out! See what's new in the release blog

QColorDialog doesn't preview alpha

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 704 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
    AnyOldName3
    wrote on last edited by
    #1

    When a QColorDialog is opened with the ShowAlphaChannel option, it adds a little box to change the alpha value, but it's not especially obvious. In other applications with an alpha channel in their colour picker, there's usually something more prominent, like a slider and/or some indication of the alpha value in the box showing the selected colour. For example, Paint.NET (not a link, I just can't see how to escape the link parsing when a dot is present) has both:

    599d574b-a265-420e-9431-d563ec9faabc-image.png

    There's a slider on the bottom right showing the current value and letting the user set it without typing, and in the top left, the preview box shows a checkerboard pattern.

    In contrast, the Qt dialogue just has the Alpha channel text and spinner in the bottom right:

    007ef37f-ef31-4ad0-bd53-61493da87aa6-image.png

    Users of my application have been confused by this, thinking they've set an opaque colour when it's actually been fully transparent.

    My recommendation would be to:

    • Add a slider to the right of the Val slider for the opacity when the ShowAlphaChannel option is active.
    • Blend the selected colour preview in the middle on top of a standard checkerboard pattern so the current opacity is obvious.
    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