QT给按钮加入样式

点击要加入样式的widget, 修改其styleSheet参数

#start_1_5  /*'start_1_5'为objectName*/
{  
  background-color: #008CBA; /* Blue */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  border-radius:20px;
  display: inline-block;
}
#start_1_5:hover
{
    color:white;
    background-color:rgb(44 , 137 , 255);
}

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/MacwinWin/article/details/86739465
今日推荐