While converting the wxWidgets code to Qt, I realized something. A QMenu's "aboutToShow()" signal is triggered around 30 TIMES whenever you open that menu. So my menu refreshing routines will be called that many times.
The question is: How to work around it?
Update (Feb 23, 2009, 19:35): Alexandru wrote a sample application, and surprisingly for me, the application does NOT trigger the aboutToShow() signal a lot of times per menu, but rather, only once. Which means only one thing:
The bug's mine. Now I need to check out what went wrong.
Update (Feb 23, 2009, 19:43): I see now what happened. The function I used to automate the connection creation was recursive, but I added the aboutToShow() connections on that same function, which, obviously, got called a lot of times.
I moved the aboutToShow connections elsewhere, and problem solved :)
Alexandru gets a trust point for helping me fix this bug. Yay!
Codec Plugins, and image reading! - So I've managed to finish writing the core of the codec plugins. As a result, I've been able to code an image-reading plugin using Qt's built-in image libr...
7 years ago