NetBeans and Qt

  • 1.) I tried compiling a Win32 app that I have been working on using MinGW-64bit and NetBeans using the tool chain that came Qt 5.3.1 for Windows 32-bit (MinGW 4.8.2, OpenGL, 735 MB). I did change the architecture to 32-bit, but even though the program compiled, I did not get the window to display. Only a console window popped up. Is there a limitation to the MinGW in Qt to not use Win32 API?

    2.) Is there a tutorial about how to use Qt in NetBeans 8? I mean, NB8 already have a C++ project template for Qt.


  • Dear ArbolOne,

    1. No, there are no such problems in Netbeans. It can use the compiler provided by Qt (32-bit) just fine. I am assuming that you are building a Win32 GUI application. Do you see a -Wl,--subsystem,windows in the build output windows in the linking step? Netbeans may have assumed a Console application by default ??

    2. Have not used Netbeans 8 for Qt yet. But I did notice a problem using Netbeans 7 with Qt 5.x. Qt 5.x needs a QT += widgets in the .pro file. Netbeans 7 build automatically re-generates pro file and there is NO MEANS of specifying this option. So GUI programs did not build correctly! No such issues using Netbeans with QT 4.x

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.