All the problems can be solved by just some hacking here and there... previously you were stuck with the editfinish() signal emiting before the cancel button.. that was solved by eventfilter... now as far as pressed() goes...
i think your problem can be solved by just extending the code a bit more... i can give you some hints..
1. button has a pressed() signal
2. a button subclass can monitor mouseEnter, mousePress, mouseRelease
3. events can be sent back to parent widget
4. you can generate any event (QEvent*) and sent it to any widget.
using subclasses, eventfilter, and lil bit here an there u can overcome the problem... its may take less than a day. but something tells me it is possible.
but i like to tell u that the behaviour you want to achieve is very uncommon and i as a user also do not like it... do it the standard way as suggested by someone before.






Reply With Quote
Bookmarks