YankzzDev wrote:it's work on windows? i want integration to windows

QString filename = QFileDialog::getOpenFileName(this);
ui->label->setText(filename);
IAnimatedMesh* mesh = smgr->getMesh("sydney.md2");
IAnimatedMesh* mesh = smgr->getMesh(filename);
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"
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
- cpp Code: Select all
IAnimatedMesh* mesh = smgr->getMesh(qPrintable (filename));
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?

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?
serengeor wrote: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?
Read the F***** API and get some c++ skills![]()
Not trying to be rude, but basically it seams that we're programming for you.
aanderse wrote: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?
can you please post your code so i can understand what you mean?
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.
Return to FAQs, Tutorials, Howtos, and external tool lists
Users browsing this forum: No registered users and 1 guest