Hello all,
i have read some documents but the codes there are mostly invalid.
Qt Code:
int main(int argc,char ** argv) { QPalette palette; view->setPalette(palette); view->setModel(model); view->setWindowTitle("QListView Selected Item Bg Color"); view->show(); return app.exec(); };To copy to clipboard, switch view to plain text mode
for example the code above is a sample which peole use it to set the background color. I run this sample and the color remains still the same.
Unbenannt.png
Bookmarks