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
Post a Comment