[Qt-interest] customized label

Sajjad dosto.walla at gmail.com
Mon Jul 19 12:13:01 CEST 2010


Hello forum,

I believe that any existing widgets can be customized in Qt. And i need some
suggestion to have a customized QLabel. The CustomizedLabel should have the
following behavior:

1. The label text will change its color with mouse press event.

2. The label text will initially load with the value provided in the
designer. And the value will be incremented with the mouse move event while
the left mouse button down and move upwards. It will be decremented vice
versa.



I hope it will be fine if i subclass the QLabel and over-ride the
mousePressEvent, mouseMoveEvent and MouseReleaseEvent.



Any suggestion would be very helpful.


Regards
Sajjad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100719/19e22800/attachment.html 


More information about the Qt-interest-old mailing list