At least you forgot to #include <QWidget> in mwidget.h.
At least you forgot to #include <QWidget> in mwidget.h.
J-P Nurmi
And it's "class", not "Class"Including <QPainter> and <QPaintEvent> in the implementation file will be required as well. And lose the "class" keyword before the constructor declaration.
I did it... And finally WORKS...
Now I got a "QVector<QPoints> puntos" that I create fill with the "generar()" function in the "main" .h and .cpp called "aread.h" and "aread.cpp".
Now I want to pass this QVector to the QPainter to draw. But QPainter is implemented in the promoted file, And It doesn't recognize any label or widget in the "main files (.h) and (.cpp).
Should I define in the promoted file a class called Mlog? and try to use the "QVector of this one" in the promoted file?
I defined the QVector as globalI guess that was it.
But I'm still confused between the 2 files.
and How I could call a slots or widget in the main files in the promoted file...
Last edited by j0rt4g4; 9th December 2008 at 22:02.
Bookmarks