The trite answer is, any way you want.
I suspect what you're really asking is what cross platform frameworks are available that integrate with Netbeans in the way that MFC integrates with Visual Studio or Qt with QtCreator.
As far as I know the answer is none, primarily because Netbeans like Eclipse was initially designed as a Java IDE. C++ support was later added as a plugin. It should be possible to get Qt to work and I guess there are instructions out there somewhere. Certainly Boost will build in as much as that's a framework these days.
Personally I like Netbeans a lot and I just happen to be developing a cross platform C++ framework at the moment which builds with Netbeans on Windows and Linux. Here's the
link[
^] to the introductory CodeProject Article to accompany that shameless plug. Unfortunately it's a long way from being ready for production projects but all assistance, ideas and critiques on the small ammount published so far are welcome.