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

php - Cannot override Laravel Spark authentication with own implementation -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -