#include <QApplication>
#include <QVBoxLayout>
#include <QSlider>
#include <QSpinBox>
#include <QPushButton>
#include <QLabel>
#include <QFileInfo>
#include "Filewalker.h"
int main(int argc, char *argv[])
{
Filewalker f;// no matching function for call to 'Filewalker::Filewalker()' -- is there no default constructor for it?
//Just candidates are: Filewalker::Filewalker(long int, QString, QString); and Filewalker::Filewalker(const Filewalker&)
//QWidget *window = new QWidget;
window.setWindowTitle("File Indexer");
QObject::connect(indexate,
SIGNAL(clicked
()),
&f,
SLOT(Filewalker
::walk("C:\\C")));
//no matching function for call to //'QObject::connect(QPushButton*&, const char*, Filewalker&, const char*)' -- what const char* means especially in the last //case, in the first one -- clicked() seams to be normal signal for SIGNAL. How should I describe slot here. Or it is the result of Q_Object macro despite the error seems to be another in such case. layout->addWidget(indexate);
layout->addWidget(writexml);
layout->addWidget(readxml);
layout->addWidget(render);
layout->addWidget(label1);
layout->addWidget(label2);
layout->addWidget(search);
window.setLayout(layout);
window.show();
return app.exec();
}
#include <QApplication>
#include <QVBoxLayout>
#include <QSlider>
#include <QSpinBox>
#include <QPushButton>
#include <QLabel>
#include <QFileInfo>
#include "Filewalker.h"
int main(int argc, char *argv[])
{
Filewalker f;// no matching function for call to 'Filewalker::Filewalker()' -- is there no default constructor for it?
//Just candidates are: Filewalker::Filewalker(long int, QString, QString); and Filewalker::Filewalker(const Filewalker&)
QApplication app(argc, argv);
QWidget window;
//QWidget *window = new QWidget;
window.setWindowTitle("File Indexer");
QPushButton *indexate = new QPushButton("&Indexate Files");
QPushButton *writexml = new QPushButton("&WriteXMLtoFile");
QPushButton *readxml = new QPushButton("&ReadXMLfromFile");
QPushButton *render = new QPushButton("&RenderDirectly");
QLabel *label1 = new QLabel();
QLabel *label2 = new QLabel();
QPushButton *search = new QPushButton("&Search file by name");
QObject::connect(indexate, SIGNAL(clicked()),&f, SLOT(Filewalker::walk("C:\\C"))); //no matching function for call to //'QObject::connect(QPushButton*&, const char*, Filewalker&, const char*)' -- what const char* means especially in the last //case, in the first one -- clicked() seams to be normal signal for SIGNAL. How should I describe slot here. Or it is the result of Q_Object macro despite the error seems to be another in such case.
QVBoxLayout *layout = new QVBoxLayout();
layout->addWidget(indexate);
layout->addWidget(writexml);
layout->addWidget(readxml);
layout->addWidget(render);
layout->addWidget(label1);
layout->addWidget(label2);
layout->addWidget(search);
window.setLayout(layout);
window.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks