Can i read value from QLabel
问题 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 回答1: Like this? QString text = someLabel->text(); 回答2: Here is the documentation. QLabel.text() EDIT: QString text = theLabel.text(); //or with pointer QString text = theLabel->text(); 回答3: have you tried : QString s = YourQLabel->text(); This should work, I guess.