Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
Created October 31, 2017 18:06
Show Gist options
  • Save peteristhegreat/ef3b7b48903535e2dadf4c9d531da15a to your computer and use it in GitHub Desktop.
Save peteristhegreat/ef3b7b48903535e2dadf4c9d531da15a to your computer and use it in GitHub Desktop.
Qt Solutions, how to make and install the qhc qdoc qhp index.html files into assistant and qtcreator
# How to compile all the libraries and documentation:
for i in */; do
echo "================= $i ================";
(cd $i;
./configure -library;
qmake;
make;);
done
mkdir doc
for i in */doc/html/*.qhp;
do echo $i;
(cd $(dirname $i); qhelpgenerator *.qhp; cp *.qch ../../../doc )
done;
#See the qdoc files on how to use QtVariant, or the examples in:
#qt-solutions/qtpropertybrowser
echo 'Easiest way to link it to qtcreator is to go to:'
echo ' Tools > Options > Help > Documentation (tab) > Add…'
echo ' $PWD/qt-solutions/doc'
echo ' Select all qch files, and click open. Then restart qtcreator. '
echo ' Now if you press F1 in Qt Creator on a Qt Solutions element, '
echo 'it will show the help page appropriately.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment