本文介绍了我可以从QLabel读取值吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我现在如何设置值(数字),但是我可以在某些变量中读取该标签.如果看不懂,我可以在其中放入相似的小部件值并读取它.任何帮助都将是无足轻重的,否则会有其他想法.也许像LCD号码,旋转框
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();
这篇关于我可以从QLabel读取值吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!