qt - QDesktopServices truncates the # sign in a path -


if have # sign in path, qdesktopservices truncates string resulting in behind , including sign beeing removed. using approach below results in inserting %23 sign fails opening file. want string copied address field defined (with #).

qstring file = "f:/the_path/to_the_/generated#_html_file.html"; qurl test = qurl::fromlocalfile(file); // gives url="file:///f:/the_path/to_the_/generated%23_html_file.html"; qdesktopservices::openurl(test); //unable open 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -