Results 1 to 2 of 2

Thread: Custom DoubleSpinBox needed

  1. #1
    Join Date
    Jun 2012
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Custom DoubleSpinBox needed

    I would like to have a Custom DoubleSpinBox which could able to increase/decrese the value based on the current cursor.
    I know that there might be some confusing on the statement above, I will show an example:

    The spinbox is showing : 1.234
    When i click on the point before number "3", the cursor is blinking infront of number "3".
    After that, when I click on the up button on the SpinBox, the SpinBox value will show: 1.244.
    For the same theory, when my pointer is infront of number "1", when i click button up, the value of SpinBox will become : 2.244.

    This similar functionality is available in the DateTimeEdit, but the DateTimeEdit cannot change the display format from DateTime format to pure Number Format (correct me if i'm wrong in this view). And I could not get the source code of DateTimeEdit to understand how it work.

    So, do any can help me to get the SpinBox with such functionality (either modify from QSpinBox or QDateTimeEdit)?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Custom DoubleSpinBox needed

    Please do not double post.

Similar Threads

  1. Custom DoubleSpinBox needed
    By jack249 in forum Qt Programming
    Replies: 1
    Last Post: 13th June 2012, 05:26
  2. problem with DoubleSpinBox
    By rimie23 in forum Qt Programming
    Replies: 10
    Last Post: 9th June 2012, 16:46
  3. Help needed to add custom slot to QGLWidget
    By doughng in forum Newbie
    Replies: 1
    Last Post: 17th December 2011, 09:53
  4. Custom Container widget plugin help needed
    By JohnKustrin in forum Newbie
    Replies: 1
    Last Post: 14th May 2010, 10:01
  5. catch signal stepDown from doubleSpinBox
    By pospiech in forum Qt Programming
    Replies: 10
    Last Post: 3rd January 2009, 11:51

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.