how should I declare this? and additional class?
1. You should use an additional class for your dialog, not the main window class.
2. The ui_porcupine.h file is automatically generated by the uic ( UI compiler ). All you have to do is include it in your dialog header. You must not modify/or care about this file, because it will be overwritten each time you modify something in the ui.
To show it using a menu, I think you first should read the Menus example in the Main Windows section from the examples and demos. This should help you a bit.
Also, have a look at the Qt Designer manual ( int the Assistant ).
BTW: what is a porcupine?
Edit - nevermind. I know now, but it sounds so funny...
Regards
Last edited by marcel; 17th April 2007 at 05:26.
Bookmarks