请使用style sheet,比如: edit->setStyleSheet("QTextEdit { background: yellow }"); 具体用法参考Qt帮助。
16,173
社区成员
26,583
社区内容
加载中
试试用AI创作助手写篇文章吧