Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I use Qt Creator for building applications and recently I decided to upgrade my Ubuntu from 12.10 to 13.04 and upgrade my current project from Qt4 to Qt5. The problem is that the Help section provides no documentation for Qt5. For Qt4 I used to have the package qt4-doc, but there's no qt5-doc or anything similar.

How to install the Qt5 documentation?

share|improve this question
    
There isn't a qt5-doc package for Ubuntu yet but everything is available here . From what I understand though the jump from Qt4 to Qt5 isn't that massively drastic, so you could even just use qt4-doc for the moment –  Nico Bellic May 5 '13 at 15:51
    
Or you take the newest documentation that comes with the official installer from qt-project. You find a download link in my answer below. –  Nick Lehmann Sep 28 '13 at 7:17

2 Answers 2

up vote 5 down vote accepted

There is a qt5-doc package, but it is on a separate repository.

To install it, do:

sudo add-apt-repository ppa:ubuntu-sdk-team/ppa 
sudo apt-get update
sudo apt-get install qt5-doc

Then you must declare it in Qt Assistant:

Edit => Preferences => Documentation => Add

and then select file

/usr/share/qt5/doc/qch/qtdoc.qch

Yes, Qt5 integration in Ubuntu seems to be half baked.

Best,

share|improve this answer
    
I've done that but something must be missing since searching for something basic like QThread turns up no results. –  Nathan Osman Sep 13 '13 at 4:26
    
That's correct, and the "All classes" page does not list any class. I agree something must be missing from my "solution" above. –  user130564 Sep 15 '13 at 11:32

Yeah, the official Ubuntu-documentation for Qt5 is very incomplete. You don't have information about nearly any class.

If you want to use the QtCreator build from Ubuntu you have to acquire the docs yourself. I did and uploaded these on my personal Mega-account. Here are the docs. I installed the Qt framework with the installer from qt-project.org, grabbed the documentation and inserted it into the software-center-version.

To add the docs to QtCreator go to Tools>Options>Help>Documentation and click add. Then select all .qch files, click apply and enjoy your new help.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.