Hi,
it's me again
i create project qt+ogre i have not problem with that
for create this project i define class like that
{
Q_OBJECT
public:
~OgreWidget();
.
.
.
class OgreWidget : public QWidget
{
Q_OBJECT
public:
OgreWidget(QWidget *parent = 0);
~OgreWidget();
.
.
.
To copy to clipboard, switch view to plain text mode
and all my functions are in this class
for exemple
void OgreWidget::createScene()
void OgreWidget::setupNLoadResources()
.
.
.
void OgreWidget::createScene()
void OgreWidget::setupNLoadResources()
void OgreWidget::paintEvent(QPaintEvent *e)
.
.
.
To copy to clipboard, switch view to plain text mode
i change now my gui (interface) it's based now qmainwindows and the widget where i want create my scene there it's part of this class qmainwindows
i have now this
{
Q_OBJECT
public:
. QMdiArea *mdiArea;
.
.
class MyInterface : public /*QWidget*/QMainWindow
{
Q_OBJECT
public:
QWidget *centralwidget;
. QMdiArea *mdiArea;
.
.
To copy to clipboard, switch view to plain text mode
my interface mow is like that
inter.jpg
i want see my scene in the ceb$ntral widget "sous fenêtre" who it is on the mdiArea
is i must create another class ? how i do that ?
Bookmarks