【发布时间】:2017-03-07 19:28:46
【问题描述】:
我想移植一个 C++Builder 项目以在其 UI 中使用 Qt。有谁知道 VCL 的 TStatusBar、TStringGrid、TListBox 和 TSpeedButton 组件的 Qt 等效项是什么?
【问题讨论】:
-
哦,拜托,你都没试过。
标签: qt c++builder
我想移植一个 C++Builder 项目以在其 UI 中使用 Qt。有谁知道 VCL 的 TStatusBar、TStringGrid、TListBox 和 TSpeedButton 组件的 Qt 等效项是什么?
【问题讨论】:
标签: qt c++builder
TStatusBar,使用QStatusBar
TListBox,使用QListBox(Qt4 中的Q3ListBox)或QListWidget
TStringGrid 和 TSpeedButton 显然没有等价物。使用 Qt 演示软件查看 Qt 工具包的建议并找到您正在寻找的内容。 对于其他类(OP未提及):
TCheckBox,使用QCheckBox
TRadioButton,使用QRadioButton
TComboBox,使用QComboBox
【讨论】:
TStringGrid,您可以在其单元格中使用QGridLayout 和QLabel 和/或QLineEdit 小部件。
TCheckBox、TComboBox、TRadioButton...)