Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65735

[Qt 5.10.1] Printsupport not working with WinRT

    XMLWordPrintable

Details

    • 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

        Issue Links

          For Gerrit Dashboard: QTBUG-65735
          # Subject Branch Project Status CR V

          Activity

            People

              owolff Oliver Wolff
              mipohjan Milla Pohjanheimo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes