Open a new project 'HelloQtOnNetBeans' as a 'C++ Application Project' and copy the C++-program listed below into a new 'Main C++ File' of this project and save the file into your project directory. Also copy the corresponding include file listed below into a new 'C++ Header File' and save the file into your project directory. The directory structure will look like:
| HelloQtOnNetBeans | |
| nbproject | |
| HelloQtOnNetBeans.cc | |
| HelloQtOnNetBeans.h | |
| HelloQtOnNetBeans.pro |