PDA

View Full Version : openUrl() not working for named anchors inside HTML files with file:/// entries



bgregg
16th April 2010, 11:16
A named anchor inside a HTML or URL reference is not working for openUrl() with file:/// entries. The last part of the URL, represented by a '#' followed by a string of characters does not show up in the browser but the rest of the URL does. So the top-level URL page displays but it doesn't go to the specified anchor point.

QDesktopServices::openUrl(QUrl("file:///C:/work/explain.html#NewEntry"));

Are there any known limitation using file:/// instead of http:// for this type of anchor point referencing?