View Full Version : Qt with devc++
peace_comp
3rd March 2008, 15:08
peace..
hi everybody ..
I just started with Qt library and I have some trouble to execute some applications on devc++..
I installed qt and create a template for it on devc++... when i complile a simple programme ( hello world )..it gives no error but when i execute (run)..I've the following error> the procedure enry point .... could not be located in the dynamic link library QtCore4.dll
plz help
Do you have multiple versions of Qt installed? Which one is in PATH? Which one do you use for compiling your app?
peace_comp
6th March 2008, 22:53
Well...Actually I reinstall another version (4.3.4 ...) ..So it work for simple application ( project with only one main.cpp).
I tried to create a project with 3 files ( file.h ,file.cpp and main.cpp)
file.h:
#ifndef MYDIALOG_H
#define MYDIALOG_H
#include <QDialog>
class QLabel;
class QCheckBox;
class QTextEdit;
class QLineEdit;
class QPushButton;
class myDialog: public QDialog
{
Q_OBJECT
public:
myDialog(QWidget *parent=0);
signals:
void findNext(const QString *str,Qt::CaseSensitivity cs);
void findPrevious(const QString *str,Qt::CaseSensitivity cs);
private slots:
void findClicked();
void enableFindButton(const QString &text);
private:
QLabel *lable1;
QLineEdit *lineEdit;
QCheckBox *case1;
QCheckBox *case2;
QPushButton *find;
QPushButton *close;
};
#endif
file.cpp ( definitions of member function)
main ( a simple instance of the class dial)
..the errors I get are linker error >>>undefined reference to myDialog::staticMetData..?
..
..
I read about Q_Object mecanism ..but I dont really know wht to do ( how to create a moc file??!!)
plz help
Make sure file.h is listed in .pro file and always re-run qmake after adding or removing Q_OBJECT macro.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.