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. RGB to hex conversion
Qt 6.11 is out! See what's new in the release blog

RGB to hex conversion

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 4.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.
  • N Offline
    N Offline
    niftybytes
    wrote on last edited by
    #1

    Hello,

    I was wanting to know if there was an RGB to hex conversion in Qt. I read through Qt color picker and Qt color documentation but was unable to find any conversion for RGB to hex. I know it is simple to parse and convert myself but I would like to use a function.

    Thanks in advance,

    Bryan

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alexander
      wrote on last edited by
      #2

      @QColor( QRgb color ).name()@

      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