Building Qt examples

Before building Qt examples, set up your environment according to the instructions in Setting up your build environment.

Note: You must use the Visual Studio x64 Command Prompt to build Qt plug-ins on Windows.

  1. Extract the Qt headers.

  2. Locate the plug-in you want to build. Each Qt example is located in its own directory under the devkit's plug-ins directory: grabUV, helixQtCmd, qtAdskStyleProxy, qtForms, saveSwatchesCmd, and workspaceControlCmd.

  3. From the example's directory, run qmake on the pro file to generate a makefile. On Windows you will need to run qmake from the Visual Studio x64 command prompt.

For example, on Linux or macOS, run:

```sh
$DEVKIT_LOCATION/devkit/bin/qmake helixQtCmd.pro
```

And on Windows, run:

```sh
%DEVKIT_LOCATION%\devkit\qmake.exe helixQtCmd.pro
```

On macOS, the makefile will have the name of the project with the `.mak` extension added. For example, `helixQtCmd.mak`.

On Linux and Windows, the makefile will be named `Makefile` regardless of the name of the example.

Build the plug-in using the makefile.

On Linux, run make –f Makefile.

On macOS, run make –f helixQtCmd.mak.

On Windows, run nmake /f Makefile from the Visual Studio x64 command prompt.