现在的位置: 首页 > 综合 > 正文

Installing Qxt on Windows

2013年02月02日 ⁄ 综合 ⁄ 共 1036字 ⁄ 字号 评论关闭

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

  1. Install Microsoft Visual C++ 2010. Any edition, including Express, will work.
  2. Install Qt 4.8.x for VS 2010.
  3. Compile and install Qxt:

    1. Download and extract libqxt 0.6.x to a directory.
    2. 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
release
. 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.

抱歉!评论已关闭.