文章标题 原创 翻译 转载 文章内容 当给QComboBox设置行交替使用不同颜色后,两个相邻的item文字有重叠 ``` ui.comboBox->view()->setAlternatingRowColors(true); ``` 解决方法: > 在Qt Designer中给comboBox的字体点大小设置为当前实际要展示的文字大小,默认为9,如果我们的文字要显示12px,将其改为12。 文章类别 Python Mobile Android Java Shell Life Database Bug Windows IOS Tools Boost Node.js Mac Product Tips C/C++ Golang Javascript React Qt MQ MongoDB Design Web Linux LLM ChatGPT RAG AI 提交