Hi, Hoping someone can help me out. Im pretty new to QT and developing an App to run on the Raspberry Pi.. SO far, all great, but have an issue with using the QColorDialog. In my application, my mainwindow.ui background is black, and when i open a QColorDialog, it inherits the same background color. Ive tried using a stylesheet and that doesnt work.. Ive used the QColorDialog:OntUseNativeDialog to force the use of QT's version.

QColorDialog mycolordialog;
mycolordialog.setStyleSheet("background-color:grey");
QColor color = mycolordialog.getColor(Qt::white, this, "Effect Color", QColorDialog:ontUseNativeDialog);


Can anyone tell me why i cant change the background of the color picker to grey ?

Thanks !


Pete