Hi, QT_NO_PRINTER is (or not) defined when compiling Qt, not when loading or not a module. One thing you could is the qtHaveModule() function in your pro file and create the defines you need there. Hope it helps