declaration in header file
QColor dialogBoja, dialogBoja1;
QColor dialogBoja, dialogBoja1;
To copy to clipboard, switch view to plain text mode
.cpp file
dialogBoja = postavke.value("boja", Qt::black).toString();
//postavke means settings
dialogBoja1 = postavke.value("boja1", Qt::white).toString();
dialogBoja = postavke.value("boja", Qt::black).toString();
//postavke means settings
dialogBoja1 = postavke.value("boja1", Qt::white).toString();
To copy to clipboard, switch view to plain text mode
As I said on title, when I try to compile this in Qt5 I get error: QVariant::QVariant(Qt::GlobalColor)' is private
How to solve this.
Bookmarks