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.
有没有办法让我的旋转框能够以 0.1 值的步长进行调整?
显然最小 0 最大 90 但单步我似乎只能将其修改为 1。
有人可以向我解释如何将其修改为 0.1 吗?
你想显示双,所以你需要 QDoubleSpinBox。
用于setSingleStep(0.1)执行此操作。
setSingleStep(0.1)
http://qt-project.org/doc/qt-4.8/qdoublespinbox.html#singleStep-prop