Don't want QTextBrowser to look in working directory
I'm having a problem with QTextBrowser. Seems to be a pitfall because I have found that it has different behavior depending on what is the current working directory...
For example if I say
Code:
browser.setSource("index.html");
then everything works fine... unless there happens to be an index.html in the current working directory... in which case it still opens /my/path/index.html as desired... however the supporting content is not found! Whereas it works fine if working directory does not contain index.html!
Re: Don't want QTextBrowser to look in working directory
You can (and in this case probably should) always use an absolute path. QCoreApplication::applicationPath() might help you with this if you need to access a path relative to the application binary.