[Qt-interest] Windows Explorer extension using Qt

Bob Hood bhood2 at comcast.net
Fri Jan 7 02:17:22 CET 2011


On 1/6/2011 5:16 PM, Jason H wrote:
> You can do it but you'll need WinAPI to add yourself to the menu. After that, it 
> should be cake. You might need to use native window handles though. Remember Qt 
> is just a library... Once you register your menu item and handler entry point, 
> you should have free reign. 

Hi, Jason.

Getting to that point is not the problem, really.  I've done that using ATL in
the past, so I am pretty familiar with the process of getting a context menu
entry added to Explorer.  What I'm wanting to do is use Qt as my GUI instead
of the Windows API.  For example, of somebody selects "Settings" from the
context menu, I want to create, post and drive a Qt-based settings dialog from
the COM server.  It's really that aspect of it that I'm wondering about.

I tried this using Python (with pywin32 and PyQt).  I easily got the context
menu added, but could not get the GUI to show up no matter what I did.  I
created the QApplication in several different places and tried to drive with
exec(), but it just would not show the GUI.  I've not gotten to the point yet
where I'm ready to post a GUI with the C++ version, but I'm beginning to think
if I can't do it in Python, that it's also not going to happen in C++.  Thus
my request to see existing code that does it. :)

I'll keep tinkering.  This is not life-or-death, just my curiosity and desire
to create a utility in the most elegant fashion I can.



More information about the Qt-interest-old mailing list