Results 1 to 12 of 12

Thread: Create a numeric keypad Dialog

  1. #1
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Create a numeric keypad Dialog

    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:
    1. normal (1.png)
    2. mouse over(1_over.png)
    3. clicked(1_down.png)


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

    Thanks

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Create a numeric keypad Dialog

    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Re: Create a numeric keypad Dialog

    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!

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Create a numeric keypad Dialog

    What examples? I did not post links at examples.
    Just links to docs.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  5. #5
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Re: Create a numeric keypad Dialog


  6. #6
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Create a numeric keypad Dialog

    you can find it at QTDIR/examples/widgets/stylesheet
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  7. #7
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Re: Create a numeric keypad Dialog

    Guess that if i am doing this right it's not my lucky day.
    http://doc.trolltech.com/4.4/example...ets/stylesheet
    gives me..
    Qt Code:
    1. Multiple Choices
    2. 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.
    3.  
    4. Available documents:
    5.  
    6. * /4.4/examples.html/widgets/stylesheet (common basename)
    To copy to clipboard, switch view to plain text mode 

    Better look somewhere else.

  8. #8
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Create a numeric keypad Dialog

    Quote Originally Posted by gt.beta2 View Post
    Better look somewhere else.
    Without bothering to click on the given link?
    J-P Nurmi

  9. #9
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Re: Create a numeric keypad Dialog

    What link do you refer to now

  10. #10
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Create a numeric keypad Dialog

    Quote Originally Posted by gt.beta2 View Post
    What link do you refer to now
    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.
    J-P Nurmi

  11. #11
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Re: Create a numeric keypad Dialog

    ahhhh ... now i understand.
    Thanks

    PS: I supose they came from this package :
    http://packages.debian.org/lenny/qt4-demos
    Last edited by gt.beta2; 27th January 2009 at 17:33.

  12. #12
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Create a numeric keypad Dialog

    Quote Originally Posted by gt.beta2 View Post
    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.
    J-P Nurmi

Similar Threads

  1. How to create a save as dialog box?
    By gurinder in forum Qt Programming
    Replies: 1
    Last Post: 6th February 2008, 14:01
  2. how to create a popup dialog
    By Morea in forum Qt Programming
    Replies: 1
    Last Post: 19th November 2006, 17:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.