robertknight / Qt-Inspector

Utility to browse the Qt object tree of a running Qt application and edit object properties on the fly.
GNU Lesser General Public License v3.0
401 stars 70 forks source link

Windows support? #10

Open mooop12 opened 8 years ago

mooop12 commented 8 years ago

As in the title. I have a Windows-only application I would like to use this tool on. Any chances of adding support for it?

robertknight commented 8 years ago

Windows support would be welcome but I'm afraid I don't have the time to work on it myself. For anyone who is interested in having a look, you'll need to create an implementation of the Injector class which is able to load the helper library into the target process. Have a look at the PreloadInjector or GdbLibraryInjector to see how the implementations for Mac/Linux work.

yanzixiang commented 2 years ago

As in the title. I have a Windows-only application I would like to use this tool on. Any chances of adding support for it?

@mooop12 I also want to use this tool on windows , have you make it ?

tansautn commented 2 months ago

Windows support would be welcome but I'm afraid I don't have the time to work on it myself. For anyone who is interested in having a look, you'll need to create an implementation of the Injector class which is able to load the helper library into the target process. Have a look at the PreloadInjector or GdbLibraryInjector to see how the implementations for Mac/Linux work.

So, it doesn't just build the process for Windows, right? I thought QT used the same API for different platforms?

Or do you mean that the process initialization on the Windows platform is different from UNIX? Making the injection need to be implemented separately for Windows?

And is it work on Linux under WSL ?

robertknight commented 2 months ago

Or do you mean that the process initialization on the Windows platform is different from UNIX? Making the injection need to be implemented separately for Windows?

Yes, this is exactly the issue. Most of the code in this tool uses cross-platform Qt APIs, but the code for injecting it into the process is operating system specific.

And is it work on Linux under WSL ?

It probably does work under WSL, but I haven't tried it.