I'm currently having a build issue in one on my class. the dev is done in Qt/c++
header.h
class Ui_DialogBoxProgress : public QDialog
{
Q_OBJECT
public:
explicit Ui_DialogBoxProgress(QWidget *parent = 0, Cache& cache);
~Ui_DialogBoxProgress();
Cache& m_cache;
src.cpp
Ui_DialogBoxProgress::Ui_DialogBoxProgress(QWidget *parent, Cache& cache) :
QDialog(parent),
m_cache(cache),
ui(new Ui::Ui_DialogBoxProgress)
{
ui->setupUi(this);
...
Currently the error is :
header.h:21: error: missing default argument on parameter 'cache'
explicit Ui_DialogBoxProgress(QWidget *parent = 0, Cache& cache);
and the call is done in the main.cpp like below :
DeleteProgress = new Ui_DialogBoxProgress(*this, *cache);
^
Cache is a class defined below:
class Cache
{
public:
Cache();
..
Any idea ? I already use this kind of method but the build never complain