Thanks for the prompt reply, but still have a problem.
I am using designer.so entered
ui.helpBox->setPalette(p);.
QPalette p = ui.helpBox->palette();
p.setColor(QPalette::Base, QColor(240, 240, 255));
ui.helpBox->setPalette(p);.
To copy to clipboard, switch view to plain text mode
when I compiled I got
edpform.cpp:167: error: expected primary-expression before ‘.’ token
Line 167 is the ui.helpBox->setPalette(p);
so I went back in designer and opened the "palette" in the Property Editor for the helpBox ( QTextEdit Widget ). I was able to change the color there, but I want to change the background color from within the program.
thanks
Bookmarks