Res: the procedure entry point ..... could not be located in the dynamic link library
Juliano João Bazzo
julianojoaobazzo at yahoo.com.br
Tue Oct 2 15:43:37 CEST 2007
The QObject inclusing just took effect for a while. The Runtime error keeps happening.
My other guess is a environment problem with VisualStudio and QTLibrary specially related with the QListWidget class.
Declaring the QListWidget at the .h works fine however when I create an instance in the .cpp, the runtime error show up.
My .h:
#pragma once
#include <QListWidget>
#include <QPushButton>
#include "StatusType.h"
class CStatusListWidget :
public QObject
{
Q_OBJECT
public:
CStatusListWidget(void);
~CStatusListWidget(void);
void addStatus(CStatusType *status);
private slots:
void clearList();
private:
void init();
QListWidget *m_ListWidget;
QPushButton *m_ClearPB;
};
My .cpp:
#include "statuslistwidget.h"
#include <QVBoxLayout>
#include <QGroupBox>
CStatusListWidget::CStatusListWidget(void)
{
this->init();
}
CStatusListWidget::~CStatusListWidget(void){}
void CStatusListWidget::init()
{
QVBoxLayout *mainLayout = new QVBoxLayout();
QGroupBox *mainBox = new QGroupBox("Status List", NULL);
mainBox->setLayout(mainLayout);
m_ListWidget = NULL; //Just assigning a NULL is working as expected.
//m_ListWidget = new QListWidget(); //Creating an instance will compile however break at runtime.
...
If the problem happens and I just make a build (instead of rebuild = clean + build), it keeps breaking even for a working state identified previously. The working state just return to really works after a rebuild.
I tried with different machines and the problem is the same, i.e., somehow related with QListWidget.
Anybody can help me to solve such problem?
Thanks!
Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-cygwin/attachments/20071002/36f55dd6/attachment.html
More information about the kde-cygwin
mailing list