An unplanned 5th entry in my series on writing applications in C++ using Qt and boost:
A generic context menu class for Qt
by Jens Weller
From the article:
I didn't plan to write a second post on menus. But a reply on twitter caused me to over think my code I presented yesterday. Its not an very important part, so that I moved on once it did run. So, the simple question, why I would not connect the menus to a slot instead of using a switch was a good one. It would restructure the code, and slots are also callable from the outside world, while the switch buries the code inside a method...
Add a Comment
Comments are closed.