Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.10.1, 5.11.0 Alpha
-
Windows 10, WinRT
-
-
6c3f864ec00c4e20a05f60032048e9fe2c7e116c
Description
widgets/tutorials/notepad fails to build when using a snapshot 5.10.1 for WinRT (all configurations (Win 10, msvc2015, msvc2017, arm, x86, x64) fails with the same error:
["notepad.cpp(139): error C2079: 'printDev' uses undefined class 'QPrinter'\r", "notepad.cpp(140): error C2664: 'QPrintDialog::QPrintDialog(const QPrintDialog &)': cannot convert argument 1 from 'int *' to 'QPrinter *'\r", 'notepad.cpp(140): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast\r', "notepad.cpp(143): error C2664: 'void QTextEdit::print(QPagedPaintDevice *) const': cannot convert argument 1 from 'int *' to 'QPagedPaintDevice *'\r", 'notepad.cpp(143): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast\r', 'jom: C:\\Users\\qt\\RTA\\qt5\\Examples\\Qt-5.10.1\\widgets\\tutorials\\notepad\\Makefile.Release [release\\notepad.obj] Error 2\r', '\tcl -c -nologo -FS -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -O2 -MD -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQ_BYTE_ORDER=Q_LITTLE_ENDIAN -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP -DWINAPI_PARTITION_PHONE_APP=1 -DARM -D__ARM__ -D__arm__ -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DNDEBUG -I. -IC:\\Users\\qt\\RTA\\qt5\\5.10.1\\winrt_armv7_msvc2015 \\include -IC:\\Users\\qt\\RTA\\qt5\\5.10.1\\winrt_armv7_msvc2015\\include\\QtPrintSupport -IC:\\Users\\qt\\RTA\\qt5\\5.10.1\\winrt_armv7_msvc2015\\include \\QtWidgets -IC:\\Users\\qt\\RTA\\qt5\\5.10.1\\winrt_armv7_msvc2015\\include\\QtGui -IC:\\Users\\qt\\RTA\\qt5\\5.10.1\\winrt_armv7_msvc2015\\include \\QtANGLE -IC:\\Users\\qt\\RTA\\qt5\\5.10.1\\winrt_armv7_msvc2015\\include\\QtCore -Irelease -I. -IC:\\Users\\qt\\RTA\\qt5\\5.10.1\\winrt_armv7_msvc2015 \\mkspecs\\winrt-arm-msvc2015 -Forelease\\ @C:\\Users\\qt\\AppData\\Local\\Temp\\moc_notepad.obj.9712.422.jom', 'moc_notepad.cpp\r', 'jom: C:\\Users \\qt\\RTA\\qt5\\Examples\\Qt-5.10.1\\widgets\\tutorials\\notepad\\Makefile [release] Error 2\r', '\r', 'C:\\Users\\qt\\RTA\\qt5\\Examples\\Qt-5.10.1 \\widgets\\tutorials\\notepad>popd\r', '']
Attachments
For Gerrit Dashboard: QTBUG-65735 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
216697,2 | examples: Fix notepad example for configurations without printsupport | 5.10 | qt/qtbase | Status: MERGED | +2 | 0 |