Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to get R G B values seperately from QColorDialog when a color is selected?
Forum Updated to NodeBB v4.3 + New Features

How to get R G B values seperately from QColorDialog when a color is selected?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 1.3k 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.
  • K Offline
    K Offline
    kishore_hemmady
    wrote on last edited by
    #1

    I want 3 int values of R G B from a selected color in QColorDialog.Please suggest

    JonBJ 1 Reply Last reply
    0
    • K kishore_hemmady

      I want 3 int values of R G B from a selected color in QColorDialog.Please suggest

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @kishore_hemmady
      http://doc.qt.io/qt-5/qcolordialog.html#selectedColor returns a http://doc.qt.io/qt-5/qcolor.html. That has members like http://doc.qt.io/qt-5/qcolor.html#red to get the R, G & B elements individually as integers.

      1 Reply Last reply
      2

      • Login

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