7

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?

2
  • 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 May 5, 2013 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. Sep 28, 2013 at 7:17

3 Answers 3

8

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,

2
  • I've done that but something must be missing since searching for something basic like QThread turns up no results. Sep 13, 2013 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, 2013 at 11:32
4

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.

2

This is answer

sudo apt-get install qt5-doc

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .