PDA

View Full Version : lcd number set value



hezbon
17th July 2012, 12:37
how do i set the lcdnumber?

ui->lcdNumber->setValue();
is not supported.
thanx.

aamer4yu
17th July 2012, 12:51
What is lcdNumber type ?

amleto
17th July 2012, 14:11
At a guess, QLcdNumber. <-- The answer is in there

hezbon
18th July 2012, 09:04
What is lcdNumber type ?

The type is string

aamer4yu
18th July 2012, 09:22
The type is string
QString doesn't have any function setValue, isnt it ?

Can you give the declaration for it ? Also you are using setValue with no arguments.
Without knowing the type its hard to tell further, though quite sure you are making mistake in type.

wysota
18th July 2012, 09:58
The type is string

It can't be a string since it is part of the ui file generated by Designer. Thus it has to be a widget.