Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.6.1
-
None
-
Tested on Snow Leopard.
Description
It looks like the openUrl() just uses if the Scheme specified is "file". This discards the fragment part of the url, making it difficult for applications to open specific anchors in local html files.
It looks like the method we use for remote urls LSOpenCFURLRef might have this issue as well,
http://lists.apple.com/archives/Carbon-development/2002/Jul/msg00071.html
Perhaps it's time to move this to cocoa?
#include <QtGui> int main(int argc, char *argv[]) { QApplication app(argc, argv); QUrl url("/Developer/Documentation/Qt/html/qurl.html"); url.setScheme("file"); url.setFragment("setFragment"); QDesktopServices::openUrl(url); return -1; }
Attachments
Issue Links
- relates to
-
QTBUG-14460 QDesktopServices::openUrl() ignores anchor on local files.
- Closed