User Tools

Site Tools


qt:netbeans_c_c_fortran

This is an old revision of the document!


Netbeans + C/C++/Fortran

Apparently, the classic Java IDE Netbeans has C/C++ and Fortran support. And even more interesting, said C/C++/Fortran package also has Qt support.

Netbeans itself is Java/Swing based, so that means the IDE UI will look a bit goofy, but I personally don't mind sort of like how the Metal look-and-feel looks and feels (except for the file browser, which is marathon races beyond fugly, and the font rendering, which after a gazillion years is still sucky…come on Oracle!). The Qt part of the package integrates with Qt Designer for layout tasks. It opens *.ui files directly into Qt Designer from the IDE.

I sorta like this setup. I can get my brain around it, it seems full-featured, and while it's not a platform standard look and feel, the way things work is fairly standard.

The biggest kinks are (1) the less-than-optimal Swing font rendering (come on Oracle!) and (2) you need to manually add code to the project that a more highly integrated setup (e.g., Qt Creator) would normally do for you, such as:

  • #include <form-name>.h to the main.cpp file
  • <FormName> form; form.show(); to the main function in main.cpp
  • headers and implementations for all the slots in <form-name>.h and <form-name>.cpp
  • etc.

Another irritation: Netbeans opens a terminal shell when you debug projects but does not automatically dispose of it when you are done. Maybe there's an options somewhere that makes this happen that I haven't found. In any case, it's a bother to make it go away.

qt/netbeans_c_c_fortran.1301763319.txt.gz · Last modified: 2011/04/02 16:55 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki