Thanks a lot!
Thanks a lot!
I have the same problem with it.
In my source code, I wrote it as:
namespace Ui {
class Dialog;
}
/*in dialog.h*/
and used is in dialog.cpp as
Dialog:ialog(QWidget *parent) :
QDialog(parent),
ui(new Ui:ialog),
m_camera(new CameraDevice(this))
{
//ui = new Ui:ialog;
//m_camera = new CameraDevice(this);
ui->setupUi(this);
connect(m_camera, SIGNAL(imageReady(QImage)), this, SLOT(onImageArrival(QImage)));
connect(ui->startButton, SIGNAL(clicked()), m_camera, SLOT(start()));
connect(ui->stopButton, SIGNAL(clicked()), m_camera, SLOT(stop()));
}
them it remained me
/root/QtProject/camera-build-desktop/../camera/dialog.cpp:8: error: invalid use of incomplete type ‘struct Ui:ialog’
/root/QtProject/camera-build-desktop/../camera/dialog.h:9: error: forward declaration of ‘struct Ui:ialog’
anyone help?
Add in your dialog.cpp
I am trying to create a calculator in qt . It is showing the following error :- "invalid use of incomplete type struct ui::calculator"
i have attached my files .. plz try to run them and reply as soon as possible.
Had you created the project using Qt creator ?
Or you wrote your own .ui file ?
Its a good thread!
Bookmarks