我可以从 QLabel 读取值吗
我现在如何设置值(数字),但我可以在某个变量中读取该标签.如果无法阅读,我可以在哪些类似的小部件中放置价值并阅读它.任何帮助都将是 halpful 或有人有其他想法.也许像液晶数字,旋转框
I now how to set value(number) but can i read that label in some variable. if can't read, in which similar widgets can i put value and read it. Any help would be halpful or someone has an other idea. Maybe like LCD number, spin box
推荐答案
这样吗?
QString text = someLabel->text();
相关文章