Re: How to use QGraphicsView?
I'm trying to get QGraphicsView and QGraphicsScene work (in one file), but it doesnt. Dont laugh, im beginner:D
Code:
#include <QApplication>
#include <QFont>
#include <QPushButton>
#include <QWidget>
#include <QGraphicsView>
Q_OBJECT;
public:
};
}
int main(int argc, char *argv[])
{
graphics Graphics;
Graphics.show();
return app.exec();
}
Oh and if you have a tutorial it would be great.. I googled for 15 min.
Added after 11 minutes:
Np fixed it!!
Re: How to use QGraphicsView?
The problem is solvable by adding #include "main.moc" before the main function and reruning qmake.