使用stylesheet,设置qtab上面的文字下边距为5px
时间: 2024-03-02 15:53:10 浏览: 26
你可以使用以下代码来设置QTab上面的文字下边距为5px:
```css
QTabWidget::tab {
padding-bottom: 5px;
}
```
你可以把这段代码放到stylesheet中,然后应用到你的QTabWidget上。这样,你就可以实现QTab上面的文字下边距为5px。
相关问题
使用stylesheet,设置qtab上面的文字下边距为5px bold
你可以使用以下代码来设置QTab上面的文字下边距为5px并且加粗:
```css
QTabWidget::tab {
padding-bottom: 5px;
font-weight: bold;
}
```
你可以把这段代码放到stylesheet中,然后应用到你的QTabWidget上。这样,你就可以实现QTab上面的文字下边距为5px并且加粗。
使用stylesheet,设置qtab上面的文字下边距为5px bold 行高10px
你可以使用以下代码来设置QTab上面的文字下边距为5px,加粗并设置行高为10px:
```css
QTabWidget::tab {
padding-bottom: 5px;
font-weight: bold;
line-height: 10px;
}
```
你可以把这段代码放到stylesheet中,然后应用到你的QTabWidget上。这样,你就可以实现QTab上面的文字下边距为5px,加粗并设置行高为10px。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)