hey, i was creating the this application:
goto-cell.pro (automatic generated by qmake)
|
Source code
|
1
|
p, li { white-space: pre-wrap; } # ##################################################################### # Automatically generated by qmake (2.01a) Tue Sep 22 12:07:41 2009 # ##################################################################### TEMPLATE = app TARGET = DEPENDPATH += . INCLUDEPATH += . # Input FORMS += gotocelldialog.ui SOURCES += main.cpp HEADERS += ui_gotocelldialog.h
|
gotocelldialog.ui
main.cpp
|
Source code
|
1
|
p, li { white-space: pre-wrap; } #include "ui_gotocelldialog.h" #include <QApplication> #include <QDialog> int main(int argc, char *argv[]) { QApplication app(argc, argv); Ui::GoToCellDialog ui; QDialog *dialog = new QDialog; ui.setupUi(dialog); dialog->show(); return app.exec(); }
|
ui_gotocelldialog.h (automatic generated by qmake)
this is the example from the book: c++ gui programming with Qt 4 i've all like they have, but it gives me this error:
main.cpp:9: error: no matching function for call to ‘Ui::GoToCellDialog::setupUi(QDialog*&

’
line9:
|
Source code
|
1
|
p, li { white-space: pre-wrap; } QDialog *dialog = new QDialog; ui.setupUi(dialog);
|
/home/ralph/teste/Goto-cell/goto-cell/ui_gotocelldialog.h:50: note: candidates are: void Ui_GoToCellDialog::setupUi(QMainWindow*)
line50:
|
Source code
|
1
|
p, li { white-space: pre-wrap; } void setupUi(QMainWindow *GoToCellDialog)
|
hope u can help
cheers