PDA

View Full Version : Create a numeric keypad Dialog



gt.beta2
26th January 2009, 17:15
Hello!
I want to create a "numericKeypadDialog" so that i can enter integer using only the mouse.
I also want each key to have 3 states:

normal (1.png)
mouse over(1_over.png)
clicked(1_down.png)


So the question is ... what object should i use for each key?
Could someone point me the best direction?

Thanks

spirit
26th January 2009, 17:20
look at QPushButton & Qt Style Sheet Example (http://doc.trolltech.com/4.4/stylesheet-examples.html#customizing-qpushbutton).

gt.beta2
26th January 2009, 18:32
About the examples ...is there a link to download all the files at once(something like a tar.gz with the project)?
Can't seem to find it!

spirit
26th January 2009, 18:49
What examples? I did not post links at examples.
Just links to docs.

gt.beta2
26th January 2009, 19:49
http://doc.trolltech.com/4.4/widgets-stylesheet.html

spirit
26th January 2009, 19:55
you can find it at QTDIR/examples/widgets/stylesheet

gt.beta2
26th January 2009, 20:12
Guess that if i am doing this right it's not my lucky day.
http://doc.trolltech.com/4.4/examples/widgets/stylesheet
gives me..

Multiple Choices
The document name you requested (/4.4/examples/widgets/stylesheet) could not be found on this server. However, we found documents with names similar to the one you requested.

Available documents:

* /4.4/examples.html/widgets/stylesheet (common basename)

Better look somewhere else.

jpn
27th January 2009, 15:28
Better look somewhere else.
Without bothering to click on the given link? :)

gt.beta2
27th January 2009, 17:03
What link do you refer to now :confused:

jpn
27th January 2009, 17:11
What link do you refer to now :confused:
I meant the "Multiple choices" page you pasted, there was a list of "Available documents".

Anyway, I think I got what you meant. You thought spirit was referring to a webpage with "QTDIR/examples/widgets/stylesheet"? He wasn't. With QTDIR he meant the directory of your Qt installation. The same example is available online: Style Sheet Example.

gt.beta2
27th January 2009, 17:27
ahhhh ... now i understand.
Thanks

PS: I supose they came from this package :
http://packages.debian.org/lenny/qt4-demos

jpn
27th January 2009, 17:40
PS: I supose they came from this package :
http://packages.debian.org/lenny/qt4-demos
Well that's just the debian way of packaging it. Originally they came from the Qt source package.