Jachyra
17th February 2007, 22:01
I'm new to Qt so I thought I would start off with trying to create something simple.
What I'm trying to do is create a popup toolbox that can be used anywhere that a context menu might be used. But I can already envision the compiler messages being generated if I don't inherit from the proper classes. So my question, for those OO programmers out there who are way better at this stuff than I am, is what classes do I want to inherit from, QToolbox or QMenu....or both? And is there any way that I'm going to be able to send in any kind of custom widget to a method that is expecting a " QMenu* " as its parameter?
Also, I'm not looking to reinvent the wheel, so if anyone has a link to something like this thats already been done, it would be great if you'd be willing to share it.
Thanks in advance for any responses.
What I'm trying to do is create a popup toolbox that can be used anywhere that a context menu might be used. But I can already envision the compiler messages being generated if I don't inherit from the proper classes. So my question, for those OO programmers out there who are way better at this stuff than I am, is what classes do I want to inherit from, QToolbox or QMenu....or both? And is there any way that I'm going to be able to send in any kind of custom widget to a method that is expecting a " QMenu* " as its parameter?
Also, I'm not looking to reinvent the wheel, so if anyone has a link to something like this thats already been done, it would be great if you'd be willing to share it.
Thanks in advance for any responses.