in the given line 7 of your program
Ui::Test ui;
instead of this, you write Ui:ialog ui; and test it.
![]()
in the given line 7 of your program
Ui::Test ui;
instead of this, you write Ui:ialog ui; and test it.
![]()
Originally i did.. but that failed even more miserably (Claimed Dialog was not a member of Ui)... occured to me that it was the object name of the form, which i had changed to Test, hence Test i believe is correct where it is.....Originally Posted by bashamehboob
Thanks anyway, appreciate the help.
Try this:but first check whether you have set the objectName property of your form to "Test".Qt Code:
#include <QApplication> #include <QMainWindow> #include "ui_test.h" int main(int argc, char *argv[]){ Ui::Test ui; ui.setupUi(window); window->show(); return app.exec(); }To copy to clipboard, switch view to plain text mode
It is.. as mentioned in the previous post... (albeit not very clearly.. sorry about that)Originally Posted by jacek
Cheers anyway
I've solved the problems.. i reinstalled qt and the menubar appeared... no idea what happened to mess it up in the first place.. and as for the second problem.. put simply i'm a moron... i'd set my environment variables badly.. they were looking in the wrong folder :P, not my brightest moment..
Thanks for all the help anyway.
Max
Bookmarks