Qt-interest Archive, February 2007
Unidentified subject!
Message 1 in thread
hi
i want spinbox to display float value for example
range from 0.1 to 2.0 and the incrementing the value shud increase in
steps of 0.1 .
how i can do it
and is it possible to overide stepup() and stepdown()
function of Spinbox ?
Message 2 in thread
You might want to read the docs for QDoubleSpinBox.
Guido
On Tue, Feb 20, 2007 at 11:45:50AM -0000, sanjeev kumar wrote:
>
> hi
> i want spinbox to display float value for example
> range from 0.1 to 2.0 and the incrementing the value shud increase in
> steps of 0.1 .
> how i can do it
>
> and is it possible to overide stepup() and stepdown()
> function of Spinbox ?
>
>
>
--
[ signature omitted ]
Message 3 in thread
On 2/20/07, Guido Seifert <wargand@xxxxxx> wrote:
> You might want to read the docs for QDoubleSpinBox.
Which is only available for Qt4. Afaik you have to implement a double
spinbox yourself on Qt3.
best,
Jeroen
--
[ signature omitted ]
Message 4 in thread
> Which is only available for Qt4. Afaik you have to implement a double
> spinbox yourself on Qt3.
Ok, if it is Qt3 then I'd take the example code Trolltech provides
within the QSpinBox docs. ;-)
Guido
--
[ signature omitted ]
Message 5 in thread
Jeroen Wijnhout schrieb:
> On 2/20/07, Guido Seifert <wargand@xxxxxx> wrote:
>> You might want to read the docs for QDoubleSpinBox.
>
> Which is only available for Qt4. Afaik you have to implement a double
> spinbox yourself on Qt3.
Well, probably that's what the subject "Unidentified subject" is about ;-)
Note: By asking general and imprecise questions you get general and
inapplicable answers...
Martin
--
[ signature omitted ]
Message 6 in thread
sanjeev kumar schrieb:
> i want spinbox to display float value for example
> range from 0.1 to 2.0 and the incrementing the value shud increase in
> steps of 0.1 .
> how i can do it
Use QDoubleSpinBox.
> and is it possible to overide stepup() and stepdown()
> function of Spinbox ?
Sure, just reimplement them. Whatever the reason you want to change slot
behaviour...
> <http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3>
Do us a favour and get rid of that d*#§ banner ad! It would be
appreciated if you post plain text only to this group, not HTML. Thanks!
Martin
--
[ signature omitted ]