Qt4.7在Linux下安裝後幫助文件丟失問題的解決辦法

近期,Qt4.7.4正式發佈。從官網上下載了最新的Linux 32bit離線安裝包在CentOS上正常安裝。然而在打開聯機幫助時,總是提示“The page could not be found”,如下圖所示:

 然而,對比Windows版的Creator卻是正常的。於是在QtSDK的安裝目錄下查找相關的幫助文檔,發現Linux版在安裝目錄下的Document文件夾下的確存在完整的qch文件。那麼爲什麼在默認安裝下Creator沒有能夠自動加載這些幫助文檔呢?

於是通過google搜索“Qt  the page could not be found”(btw,搜索中文“qt 幫助文件丟失”根本找不到你想要的結果,baidu就別提了,答非所問甚不靠譜啊),發現在這裏(http://developer.qt.nokia.com/forums/viewthread/6621)也有人遇到過這個問題,這位叫Sigrid的大姐很細心的給予了提示:

What does the Tools/Options/Help/Documentation/registered documentation list in Qt Creator for you?

Can you try to register the help by hand by pointing to the required .qch files?

Can you also verify that you have a proper Qt installation as the help could have a dependency to Qt?

Also, verify that the docs you would like to have installed are checked in the SDK installer.

於是,按圖索驥,打開Creator的Tools/Options/Help/Documentation/,opps,真的沒有加載:


點擊“Add”,在彈出對話框中,定位到QtSDK安裝目錄的Document子目錄下,把裏面你所需要的qch文件加載進來(如果只開發桌面應用,那麼MeeGo*、Symbian*什麼的可以不加進來)。

然後點“Apply”、“OK”,再到幫助界面中,右鍵選擇“Reload”,OK一切正常了。

可以認爲這是QtSDK安裝包(Linux 32bit)版的一個bug。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章