Re: Irrlicht / Qt4 integration + QtCreator
Posted: Mon Oct 10, 2011 4:13 am
i am using visual studio 2008 to do it, not code block.. can you help me? i really need it..
Official forum of the Irrlicht Engine
https://irrlicht.sourceforge.io/forum/
yes it works on windowsYankzzDev wrote:it's work on windows? i want integration to windows
Code: Select all
QString filename = QFileDialog::getOpenFileName(this);
ui->label->setText(filename);
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh("sydney.md2");
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh(filename);
Code: Select all
1>.\mainwindow.cpp(43) : error C2664: 'irr::scene::IAnimatedMesh *irr::scene::ISceneManager::getMesh(const irr::io::path &)' : cannot convert parameter 1 from 'QString' to 'const irr::io::path &'
1> Reason: cannot convert from 'QString' to 'const irr::io::path'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>Build log was saved at "file://d:\QT Project\1011irrlichtqt\debug\BuildLog.htm"
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh(qPrintable (filename));
aanderse wrote:well... as your compiler tells you
you're passing the getMesh function a QString (filename) when it doesn't accept a QString, it accepts an io::path
you could pass qPrintable (filename) to getMesh instead of just filename and it should work
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh(qPrintable (filename));
Read the F***** API and get some c++ skillsYankzzDev wrote:hmmm, i have another question...
after i load the model, it's displayed on the screen, but i load another model, it's displayed 2 model with selected one and previous one...
how i can clear the previous one?
can you please post your code so i can understand what you mean?YankzzDev wrote:hmmm, i have another question...
after i load the model, it's displayed on the screen, but i load another model, it's displayed 2 model with selected one and previous one...
how i can clear the previous one?
the rude one is you... i not asking you to programming for me.....serengeor wrote:Read the F***** API and get some c++ skillsYankzzDev wrote:hmmm, i have another question...
after i load the model, it's displayed on the screen, but i load another model, it's displayed 2 model with selected one and previous one...
how i can clear the previous one?![]()
Not trying to be rude, but basically it seams that we're programming for you.
i am so bad luck.. my hard disk is damaged yesterday.. all my files are gone.. so i can't not upload my code to you now.. i will upload it after i fix my computer.. thank's for your helpaanderse wrote:can you please post your code so i can understand what you mean?YankzzDev wrote:hmmm, i have another question...
after i load the model, it's displayed on the screen, but i load another model, it's displayed 2 model with selected one and previous one...
how i can clear the previous one?
yes it does. Qt is cross platform.YankzzDev wrote:it's work on windows? i want integration to windows
hybrid wrote:Due to element ordering changes in the last few versions of sketchup, the current Irrlicht loader cannot open those collada files properly. Next version wil have a fixed loader.