PDA

View Full Version : Color palette



jackajack01
20th July 2012, 21:41
Hi..!

I need to build a color palette associated with an image so that the user clicks on a particular hue in the palette and the image changes according to the selected color.

Any suggestions on how to do that?


PS: image I have it in an object of type QImage.

thanks

mvuori
22nd July 2012, 00:45
The first thing to do is always figuring out what you are really doing and what the problem is. Clearly you are thinking of writing a small application or a main function, which is very much a different thing than a "Color palette" -- which your title suggest being the issue.

The usual approach to this kind of a situation is to do some "software design" and then figure out how the design could be "implemented" in Qt, and after that, if there are some specific issues in the implementation, asking here is a good choice. You don't seem to have any clue about the whole thing. You need to find the clue first, and that has nothing to do with Qt.

sedi
22nd July 2012, 23:32
For me it looks like if jackajack01 might just be looking for this here:
http://doc.qt.nokia.com/4.7-snapshot/qcolordialog.html

jackajack01
23rd July 2012, 15:36
thanks sedi

that was what I needed