Hello,
Thanks for your help.
My main problem was a dying mother board (fixed now) and
the rest of the problem is my ignorance.
I created a new source directory and compiled from there.
I've still got problems, that I don't understand.
Regards
Call
qg_divideoptions mydialog( 0 );// this );
//using 'this' :-
//error: no matching function for call to
//'qg_divideoptions::qg_divideoptions(RS_ActionModifyCut*)'
//'RS_ActionModifyCut' is the function the above call is in.
if ( QDialog::Accepted == mydialog.
exec() ) {
// do something with the result
qDebug() << "accepted";
}
else
{
qDebug() << "rejected";
}
Call
qg_divideoptions mydialog( 0 );// this );
//using 'this' :-
//error: no matching function for call to
//'qg_divideoptions::qg_divideoptions(RS_ActionModifyCut*)'
//'RS_ActionModifyCut' is the function the above call is in.
if ( QDialog::Accepted == mydialog.exec() )
{
// do something with the result
qDebug() << "accepted";
}
else
{
qDebug() << "rejected";
}
To copy to clipboard, switch view to plain text mode
Header
#ifndef QG_DIVIDEOPTIONS_H
#define QG_DIVIDEOPTIONS_H
#include <QtGui>
#include <QDialog>
namespace Ui {
class qg_divideoptions; //forward declaration of 'class Ui::qg_divideoptions'
}
class qg_divideoptions
: public QDialog{
Q_OBJECT
public:
qg_divideoptions
(QWidget *parent
= 0);
~qg_divideoptions();
private:
Ui::qg_divideoptions *ui;
signals:
private slots:
}
#endif // QG_DIVIDEOPTIONS_H
Header
#ifndef QG_DIVIDEOPTIONS_H
#define QG_DIVIDEOPTIONS_H
#include <QtGui>
#include <QDialog>
namespace Ui {
class qg_divideoptions; //forward declaration of 'class Ui::qg_divideoptions'
}
class qg_divideoptions : public QDialog
{
Q_OBJECT
public:
qg_divideoptions(QWidget *parent = 0);
~qg_divideoptions();
private:
Ui::qg_divideoptions *ui;
signals:
private slots:
}
#endif // QG_DIVIDEOPTIONS_H
To copy to clipboard, switch view to plain text mode
qg_divideoptions.cpp
#include <QtGui>
#include <QDialog>
#include <QWidget>
#include "qg_divideoptions.h"
#include <QDebug>
qg_divideoptions
::qg_divideoptions(QWidget *parent
) : ui(new Ui::qg_divideoptions) //error: invalid use of incomplete type 'class Ui::qg_divideoptions'
{
ui->setupUi(this); //error: invalid use of incomplete type 'class Ui::qg_divideoptions'
}
qg_divideoptions::~qg_divideoptions()
{
qDebug() << "deleted";
}
qg_divideoptions.cpp
#include <QtGui>
#include <QDialog>
#include <QWidget>
#include "qg_divideoptions.h"
#include <QDebug>
qg_divideoptions::qg_divideoptions(QWidget *parent) :
QDialog(parent),
ui(new Ui::qg_divideoptions) //error: invalid use of incomplete type 'class Ui::qg_divideoptions'
{
ui->setupUi(this); //error: invalid use of incomplete type 'class Ui::qg_divideoptions'
}
qg_divideoptions::~qg_divideoptions()
{
qDebug() << "deleted";
}
To copy to clipboard, switch view to plain text mode
qg_divideoptions.ui
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>divodeoptions</class>
<widget class="QDialog" name="divodeoptions">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Divide Options</string>
</property>
</widget>
<resources/>
<connections/>
</ui>
qg_divideoptions.ui
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>divodeoptions</class>
<widget class="QDialog" name="divodeoptions">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Divide Options</string>
</property>
</widget>
<resources/>
<connections/>
</ui>
To copy to clipboard, switch view to plain text mode
Bookmarks