QColorDialog with Initial Color -> Access Violation
Posted on 2012-08-14
I've started to use QT 4.8 and i'm trying to show a QColorDialog with an initial color taken from a config file, and once the user selected the color, it write it back to this file.
I'm getting Access Violation all the time when i try to pass it an initial color that i've set like this for example:
QColor wTmpCol = QColor::fromRgb(0,0,0,255);
QColor wColor = QColorDialog::getColor(wTmpCol, this);
When i pass a Qt::white or any Qt::SomethingElse it work.
How can i solve this problem?