Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt Assistant: Cannot open qhc file #3

Open
probonopd opened this issue Nov 30, 2020 · 8 comments
Open

Qt Assistant: Cannot open qhc file #3

probonopd opened this issue Nov 30, 2020 · 8 comments

Comments

@probonopd
Copy link
Member

LANG=C assistant -collectionFile /home/user/Downloads/helloSystem.qhc

Error registering documentation file '/home/user/Downloads/helloSystem.qch': Cannot open documentation file /home/user/Downloads/helloSystem.qch.

cc @TheAssassin

@probonopd probonopd changed the title Cannot open qhc file Qt Assistant: Cannot open qhc file Nov 30, 2020
@TheAssassin
Copy link
Contributor

TheAssassin commented Nov 30, 2020

Could it be that the issue is that the file extension is .qhcp or .qhp, but not .qch?

@probonopd
Copy link
Member Author

probonopd commented Nov 30, 2020

According to https://doc.qt.io/archives/qt-4.8/assistant-custom-help-viewer.html#creating-a-custom-help-collection-file,

The help collection file (.qhc) used by Qt Assistant is created when running the qcollectiongenerator tool on a help collection project file (.qhcp).

Which is what we are doing:

qcollectiongenerator _build/qthelp/*.qhcp

@probonopd
Copy link
Member Author

That file looks pretty empty/crippled:

cat /home/user/Downloads/helloSystem.qhc 
we''�e ftableSettingsTableSettingsTableCREATE TABLE SettingsTable (Key TEXT PRIMARY KEY, Value BLOB )9M'indexsqlite_autoindex_SettingsTable_1SettingsTabh##�tableFilterTableFilterTableCREATE TABLE FilterTable (NameId INTEGER, FilterAttributeId INTEGER )l++�tableFilterNameTableFilterNameTableCREATE TABLE FilterNameTable (Id INTEGER PRIMARY KEY, Name TEXT ){55�tableFilterAttributeTableFilterAttributeTableCREATE TABLE FilterAttributeTable (Id INTEGER PRIMARY KEY, Name TEXT )u##�1tableFolderTableFolderTableCREATE TABLE FolderTable (Id INTEGER PRIMARY KEY, NamespaceId INTEGER, Name TEXT )x))�+tableNamespaceTableNamespaceTableCREATE TABLE NamespaceTable (Id INTEGER PRIMARY KEY, Name TEXT, FilePath TE���helloSystem .hellosystemhelloSystem.qch
m��_�����m
          FullTextSearchFallback
%CreationTime_�r�       )       HideAddressBa-  EnableAddressBarA       EnableDocumentationManager▒;  HideFilterFunctionality?        EnableFilterFunctionality?)iLastShownPagesqthelp://org.sphinx.hellosystem/doc/index.html@+idefaultHomepageqthelp://org.sphinx.hellosystem/doc/index.html1#SWindowTitlehelloSystem pre-alpha documentation*-;LastRegisterTime2020-11-30T22:31:36.711

#G\4{����▒9FullTextSearchFallback
                                 %CreationTime
)HideAddressBar -EnableAddressBaAEnableDocumentationManagerHideFilterFunctionality?EnableFilterFunctionality)LastShownPages+defaultHomepage#WindowTitle-   LastRegisterTime%  

@TheAssassin
Copy link
Contributor

It's obviously an SQLite database.

@probonopd
Copy link
Member Author

...with not much in it!

@TheAssassin
Copy link
Contributor

Indeed. But I have never worked with this Qt help stuff before. Perhaps you should ask @azubieta or @antony-jr?

@probonopd
Copy link
Member Author

Possibly (just taking a wild guess here) the broken TOC in the EPUB and the empty qrc are somehow related.

@antony-jr
Copy link

Just for the info, I've never used Qt help since I never needed it in the first place. So I think I'm at the same level as a non-Qt programmer in this area.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants