Load a .obj mesh from a path as QCustom3DItem
Hi, I'm trying to load a mesh file (.obj) with a path like:"C:/Users/.../", but when I run the program it immediately crashes. To test that, I took the "Custom Items Example", copied the used .obj-file to an other directory and changed the following line in "customitemgraph.cpp":
QCustom3DItem *item = new QCustom3DItem(":/items/oilrig.obj", positionOne, QVector3D(0.025f, 0.025f, 0.025f), QQuaternion::fromAxisAndAngle(0.0f, 1.0f, 0.0f, 45.0f),color);
Is it possible to load an .obj-file as a QCustom3DItem without adding it to the resource file?