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:

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

Another irritation: Netbeans opens a terminal shell when you debug projects and the debugger sees warnings (I think), but it does not automatically dispose of it when you are done. You can make this go away by setting the project options to use the internal terminal or output pane.

Code completion isn't bad, but Qt Creator's is probably better. Supposedly support Python development is available as well.

qt/netbeans_c_c_fortran.1301949861.txt.gz · Last modified: 2011/04/04 20:44 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki