[Qt-interest] Scroll Wheel Events in QLineEdit
sarvesh saran
aquarian.thunder at gmail.com
Tue Apr 5 07:31:49 CEST 2011
On Tue, Apr 5, 2011 at 4:10 AM, Michael Jackson <mike.jackson at bluequartz.net
> wrote:
> Does anyone have an example of a QLineEdit getting a Scroll Wheel Event?
> The
> basics of what I am wanting to do would be to have the user place the
> cursor
> in the QLine Edit that maybe only accepts Integers and if the mouse is
> hovering over the QLineEdit and the user uses the scroll wheel the integers
> would change one way of the other.
>
>
As you are dealing with integers only, using a QSpinBox and reimplementing
its event function for QEvent::Wheel would appear to be more "natural" to
the end user.
thanks,
Sarvesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110405/7b0fc408/attachment.html
More information about the Qt-interest-old
mailing list