Thanks everybody for yours answers. It is clearer and I am in fact agree with you and trolltech.
I suppose that to draw a button is not much more cpu time consuming against a label ? Simon 2007/1/31, Giovanni Bajo <[EMAIL PROTECTED]>:
On 1/31/2007 11:06 AM, Simon stokes wrote: > I have a gridlayout of QLabels. What it the signal to use in this > context to change, for example, the text from the QLabel I have > **clicked** ? *All* widgets receive *events* from mouse clicks, which can be handled by subclassing and overriding the event function, or by installing an event handler. Some widgets, by default, handle events by emitting corresponding signals. This is done for widgets where the specific events need *often* to be handled (eg: a click for a button), so that the user can customize the behaviour by connecting a slot. In you case, Trolltech decided that QLabel usually don't need click to be handled, so they didn't provide a standard event handler which emits a standard signal for it. But you can do it yourself, in your own QClickableLabel, though. -- Giovanni Bajo
_______________________________________________ PyKDE mailing list [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
