When building for Qt5, the python extension needs QtWidgets and QtPrintSupport
because things moved there from QtGui in Qt4. Sent upstream.
Gbp-Pq: Name qt5_includes.patch
if includepath:
pro.write('INCLUDEPATH += %s\n' % includepath)
+ if target_config.pyqt_package == 'PyQt5':
+ pro.write('INCLUDEPATH += %s\n' % (target_config.qt_inc_dir + '/QtWidgets ' + target_config.qt_inc_dir + '/QtPrintSupport'))
+
# Make sure the SIP include directory is searched before the Python include
# directory if they are different.
pro.write('INCLUDEPATH += %s\n' % quote(target_config.sip_inc_dir))