Important: Please read the Qt Code of Conduct -

Resources "qrc" in Visual Studio

  • Hello,
    is it normal that I cannot load resources with their prefix in visual studio?

    I have files under shaders/filename, and I don't have problem to load using

    LoadShaders("shaders/SimpleVertexShader.vertexshader", "shaders/SimpleFragmentShader.fragmentshader");

    But if I try to use prefix added in qrc:

    LoadShaders(":/shaders/SimpleVertexShader.vertexshader", ":/shaders/SimpleFragmentShader.fragmentshader");

    nothing is loaded

    Thank you

Log in to reply