如何让实际的表格根据 QTableWidget 容器调整其大小? [英] How to make the actual table adjust its size to the QTableWidget container?

查看:58
本文介绍了如何让实际的表格根据 QTableWidget 容器调整其大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我什至不知道如何问这个问题.我有下表:

I do not even know how to ask this question. I have the following table:

可以看到QTableWidget是如何被选中的,但是实际的表格要小一些.如何使表格与 QTableWidget 容器的大小相同?

You can see how the QTableWidget is selected, but the actual table is smaller. How can I make the table to be the same size of the QTableWidget container?

我正在使用 QT-Designer.

I am using QT-Designer.

谢谢!

推荐答案

来自 Qt Designer 的有

from Qt Designer there are

horizontalHeaderStretchLastSection

verticalHeaderStretchLastSection

QTableWidget 上的属性.

properties on QTableWidget.

这篇关于如何让实际的表格根据 QTableWidget 容器调整其大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆