After much trial and error, here is how I have managed to get QWT working with QT 4.5

  1. Locate the QWT web-page at SourceForge
  2. Make sure that you download the QWT 5.1.2 version. For some reasons, SourceForge lists the older version 4 first
  3. Read the INSTALL file – that pretty much covers what you need to do, but for more control, generate the Visual Studio project files (qmake-msvc vc)
  4. Go find the project file in the \src\ folder
  5. Complie a release build from it

If all you need is a release build, then this is all fine and good. However, if you want a debug build…

  1. Go to project properties, select Debug
  2. Go to Linker, General, and add a “_d” to the end of the generated file
  3. Complie

Of course, you have to remember set up the input files to the examples (qwt5.lib_d instead of qwt5.lib) for them to work. Now for the goody – you can now complie the plugin (found in the \designer folder) using either release or debug, and even both, since you can have both verisons of QWT existing.

The fnal step is to place the two new dlls (the release one, and your own debug one) into the qt\bin folder. Place the plugin dlls into the \plugins\designer folder. Then this whole thing should work.

Hopefully.