jrideout
1st March 2006, 22:04
I am having trouble compiling the following code:
header
#ifndef ITEMSLISTFORM_H
#define ITEMSLISTFORM_H
#include <QtSql>
#include <QtGui>
#include "ui_itemslistform.h"
class posItemListForm: public QFrame, public Ui_itemsListForm
{
Q_OBJECT
public:
posItemListForm();
};
#endif
I removed all my other methods and such to try and see what is wrong.
implementation
#include <QtSql>
#include <QtGui>
#include "itemslistform.h"
posItemListForm::posItemListForm()
{}
// it had this before i simplified things:
// posItemListForm(QWidget *parent) : QFrame ( parent )
I use this basic style of coding for man ui forms but this gives be the following gcc errors:
It is in the out*.txt files, i had to break it up since it was so long.
Anyway, I compile qt4 apps all day long and never see a problem with this. Is it a name collision thing? what more info could help? I have tried with gcc-4 and 3.4, they have different, but similar issues. I use ubuntu, could it be a bug in there includes? Thanks in advance for any assistance.
header
#ifndef ITEMSLISTFORM_H
#define ITEMSLISTFORM_H
#include <QtSql>
#include <QtGui>
#include "ui_itemslistform.h"
class posItemListForm: public QFrame, public Ui_itemsListForm
{
Q_OBJECT
public:
posItemListForm();
};
#endif
I removed all my other methods and such to try and see what is wrong.
implementation
#include <QtSql>
#include <QtGui>
#include "itemslistform.h"
posItemListForm::posItemListForm()
{}
// it had this before i simplified things:
// posItemListForm(QWidget *parent) : QFrame ( parent )
I use this basic style of coding for man ui forms but this gives be the following gcc errors:
It is in the out*.txt files, i had to break it up since it was so long.
Anyway, I compile qt4 apps all day long and never see a problem with this. Is it a name collision thing? what more info could help? I have tried with gcc-4 and 3.4, they have different, but similar issues. I use ubuntu, could it be a bug in there includes? Thanks in advance for any assistance.