vounotras wrote:The link that you send me looks very good but really I would be grateful if you give me a simple example with main and resources two see how they are work.
Since you want widgets (so, a GUI) you will want to create a Qt application and create an Ogre widget for it.
The code in the first reply contains a main(), I don't see the problem. It's a perfectly working, fully runnable code example. Of course you need to get the dependencies first and configure them. You will probably want to setup an IDE, like QtCreator.
All the info you need to get started developing with Ogre can be found here:http://www.ogre3d.org/tikiwiki/Setting+ ... pplication
eg this one: http://www.ogre3d.org/tikiwiki/Setting+ ... +QtCreator
If you are qoing to use QtCreator and want a project file to get you started, you can download this (kindly donated by Jacmoe): download/file.php?id=1058
It's from this topic: viewtopic.php?f=2&p=366381#p366381
As for other examples of embedding Ogre in Qt, this wiki article is very good and explains it very well:http://www.ogre3d.org/tikiwiki/QtOgre
There was also a forum topic about it:viewtopic.php?t=45709
And one more topic:viewtopic.php?f=2&t=54646
So, as you can see, examples and material enough on these forums and the wiki. Just use the search function.
Hope this helps.