Why are these warnings shown by qtcreator in the editor, but it still compiles fine?
How should the code be changed so the warnings are gone?
gui.setup();
gui.add(nPasses.setup("nPasses",1,0,10)); // instantiation of function 'ofxSlider<int>::setup' required here, but no definition is available
gui.add(offset.setup("offset",1.0,0,20.0)); // instantiation of function 'ofxSlider<float>::setup' required here, but no definition is available
gui.loadFromFile("settings.xml");
you can use both declaring directly the slider or the parameter but it’s recommended to use the parameter. another way to do it, i think the best cause it’s the least verbose and the parameter range and defaults are near the declaration, is directly in the .h as: