找到ui界面  右键选中改变样式表

Qt通用css样式表_QT

直接把一下内容复制进去就好,只改需要改动的内容,颜色字体等


 

*{

background:rgb(255, 255, 255);

font-size:25px;

font-style:MingLiU-ExtB;

}

QFrame

{

border:sold 20px rgba(0,0,0);

}

QLineEdit{

color:#8d98a1;

background-color:#405361;

font-size:26px;

border-style:outset;

border-radius:20px;

font-style:MingLiU-ExtB;

}

QPushButton{

background:#ced1d8;

border-style:outset;

border-radius:20px;

font-style:MingLiU-ExtB;

}

QPushButton:pressed{

background-color:rgb(224,0,0);

border-style:inset;

font-style:MingLiU-ExtB;

}