When i add this code:
Qt Code:
  1. myColor=QRgb(((myscene*)scene())->getColor().rgb());
To copy to clipboard, switch view to plain text mode 

error:
"0x0805e342 in QColor (this=0xbfbca4d4, acolor=@0xc)
at /usr/include/qt4/QtGui/qcolor.h:254
254 : cspec(acolor.cspec)
"

getColor() returns a QColor object that is a private attribute of myscene class.
I initializate this attribute in the constructor of myscene:
Qt Code:
  1. sceneColor=QColor(Qt::white);
To copy to clipboard, switch view to plain text mode 

What's wrong??????????