Hi,
Normally this is how I use to set the background color of my pushbutton:
But how do you do it using RGB colors?Qt Code:
colorButton->setStyleSheet("background:red;");To copy to clipboard, switch view to plain text mode
This doesn't work:
Qt Code:
colorButton->setStyleSheet("background:QColor(200,100,150);");To copy to clipboard, switch view to plain text mode
Bookmarks