View Single Post
Old 03-18-2023, 07:53 AM   #860
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
<a href="file:/// Links in NV

So, re: file links in NV:

"External Links" that it knows about, such as https etc. are handled properly.

"Internal Links", like file:///, have the behavior described below.

<a href="file:///X:\MyPluginsPy3\_ris_import_dir\abstract.txt">NV Test File URI</a>

When clicked in NV, the .txt file in the link above is opened by NV directly within the NV qtextbrowser widget, and shown in it. In NV, directly. Clicking "refresh book" reloads the current Custom Column text.

If the file extension were, for example, .xyz, and there were no default file handler for .xyz files (in Qt), NV would do nothing but show an error message in DEBUG.

Example: "QTextBrowser: No document for file:///X:/MyPluginsPy3/_ris_import_dir/test4.ris"

Supposedly the errors is issued because .ris is a random extension that Qt has no standard file handler for. Unlike .txt files.

I will continue researching. Maybe I can allow a user to update on-the-fly what extensions are registered by QDesktopServices, which is what does the work for links. I don't know enough yet to know, and I don't know what I don't know.


DaltonST
DaltonST is offline   Reply With Quote