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.
有没有办法获得 Qt QSpinBox 的按钮/箭头的大小?
注意:这个问题与更改 QSpinBox 的样式无关。相反:目的是使用给定的 QSpinBox 样式,并在运行时获取其按钮/箭头的大小,这对于不同的平台会有所不同,以微调 QSpinBox 是其中一个组件的布局约束.
另外: QStyle 类似乎没有为按钮/箭头大小提供 PixelMetric 值。
谢谢。