qt样式设置

  • Post author:
  • Post category:其他


ui->calendarWidget->setStyleSheet(QString::fromUtf8("\n"
                                   "background-color: rgb(49, 49, 49);\n"      //设置背景色为黑色
                                   "color: rgb(255, 255, 255);\n"              //设置字体颜色为白色
                                   "selection-background-color:lightgray;\n"   //设置选中时的背景色为浅灰色
                                   "selection-color:black;\n"));               //设置字体选中时的颜色为黑色



版权声明:本文为panchunliang420原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。