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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -