This is how my code goes...
int Nightcharts::draw(QPainter *painter)
pW = 0;
double pdegree = 0;
my idea is when user clicks on a pie, get the RGB at that particular co-ordinates(X,Y)..compare the RGB with pieces[i].rgbColor..get the pie name and hence diaplay the details in a new window..
but I need your help in writing the code to get the pixel color of a window on mouse click..
many thanks in advance...