Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

[SOLVED] setAttribute and setBackgroundRole. Trying to set a dark background

$
0
0
Hello! I’ve tried to set the background colour with setBackGroundRole(QPalette::Dark); But didn’t work. Then I tried with setAttribute(Qt::WA_NoBackGround); And worked (at least it showed a dark screen…). I’ve read this [qt-project.org], and the docs [qt-project.org], but I don’t know why the first approach doesn’t work. By the way, the doc say: You can modify the palette or set a style sheet if you don’t achieve the result you want with setBackgroundRole() If it wouldn’t work, why? Somebody knows? Is there any difference between showing no background and setting a dark one? Thanks

Viewing all articles
Browse latest Browse all 18427

Trending Articles