WIP: Support qt5
Created by: jcfr
This topic allows to compile Slicer against either Qt4 or Qt5.
- It supports version of Qt5 with/without webkit support.
- It was tested on Ubuntu with CMake >= 3.4.2
- When building with Qt5, a library named
Slicer/Libs/qtstyleplugins/
it basically includes theQCleanlooksStyle
classes that were removed from Qt5 core. See http://code.qt.io/cgit/qt/qtstyleplugins.git/ and http://blog.qt.io/blog/2012/10/30/cleaning-up-styles-in-qt5-and-adding-fusion/
How to configure Slicer with Qt5 ?
If not installed on your system, you should specify the option -DQt5_DIR
(e.g -DQt5_DIR:PATH=/home/jcfr/Software/Qt5.7.1/5.7/gcc_64/lib/cmake/Qt5
)
Missing:
See https://www.slicer.org/wiki/Documentation/Labs/Qt5#To_Do_List
Known issues:
See https://www.slicer.org/wiki/Documentation/Labs/Qt5#Known_Issues
Update to dependent projects:
- CTK
- DataStore
- EMSegment
- MultiVolumeExporter
- OpenIGTLinkIF