Qxt is “an extension library for Qt providing a suite of cross-platform utility classes to add functionality” to Digia’s Qt
framework. I used Qxt’s QxtGlobalShortcut class to set up the global
keyboard shortcut in WindowGroomer.
However, WindowGroomer is a Windows application and as of this writing there is no simple installer for Qxt on Windows. This is the process I used to set up a build environment for Qxt on Windows:
I decided on Qt 4.8.4 for Microsoft
Visual C++ 2010 and libqxt 0.6.2.
Setup
- Install Microsoft Visual C++ 2010. Any edition, including Express, will work.
- Install Qt 4.8.x for VS 2010.
-
Compile and install Qxt:
- Download and extract libqxt 0.6.x to a directory.
-
Open a Qt 4.8 Command Prompt and do the following:(在cmd中我没有安装成功,这个需要注意一下)
cd [extracted-libqxt] # Compile and install for release configure qmake nmake nmake install # Compile and install for debug configure -debug qmake nmake nmake install
Compiling
Open a Qt 4.8 Command Prompt and do the following:
cd [directory-with-your-code]
qmake
nmake
For release mode, replace nmake
with nmake
. You may need to copy some Qt and Qxt *.dll files from their install directories to the directory containing your executable for it to run.
release