Results 1 to 2 of 2

Thread: Reactive text

  1. #1
    Join Date
    Oct 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Reactive text

    I would like to create a form that allows the user to change numeric floating point numbers by clicking and dragging on the number as opposed to typing the number into a field, dragging a slider, or using a spin box. Ideally, it would work something like the Tangle Javascript library that Brett Victor made:

    http://worrydream.com/Tangle/

    I am sure this is possible with Qt, but I don't know enough about making custom widgets to know where to get started on making something like this. Does anybody know if this sort of thing already exists for Qt, and if not, where I should start looking to figure out how to make this type of widget?

    Thanks,
    ~Luke

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Reactive text

    Subclass QSpinBox (or whatever you want the number to be displayed in) and reimplement mouse events.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 0
    Last Post: 23rd February 2011, 17:36
  2. Replies: 0
    Last Post: 2nd August 2010, 10:37
  3. Replies: 3
    Last Post: 3rd May 2009, 09:58
  4. Replies: 1
    Last Post: 3rd September 2008, 15:16
  5. QTextEdit + paste rich text as plain text only
    By Yong in forum Qt Programming
    Replies: 2
    Last Post: 6th February 2008, 17:45

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
  •  
Qt is a trademark of The Qt Company.