Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个弹出对话框,我想根据表格的大小调整它的大小。具体来说,我希望表格显示其所有动态创建的行,而无需任何滚动条。
也许是这样的?
size = my_dlg.my_table_view.size() my_dlg.setFixedSize(size.width() + 6, size.heigth() + 6)