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

DocumentViewer example does not compile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.5, 6.6.0, 6.7
    • 6.6.0 RC
    • Examples and Demos
    • None

    Description

      Trying to build the Document Viewer Application Example fails with MSVC

      mocs_compilation.cpp.obj : error LNK2019: unresolved external symbol "private: void __cdecl PdfViewer::onActionOpenTriggered(void)" (?onActionOpenTriggered@PdfViewer@@AEAAXXZ) referenced in function "public: virtual int __cdecl PdfViewer::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@PdfViewer@@UEAAHW4Call@QMetaObject@@HPEAPEAX@Z)
      mocs_compilation.cpp.obj : error LNK2019: unresolved external symbol "private: void __cdecl PdfViewer::onActionQuitTriggered(void)" (?onActionQuitTriggered@PdfViewer@@AEAAXXZ) referenced in function "public: virtual int __cdecl PdfViewer::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@PdfViewer@@UEAAHW4Call@QMetaObject@@HPEAPEAX@Z)
      app\pdfviewer.dll : fatal error LNK1120: 2 unresolved externals
      

      And indeed, while onActionQuitTriggered, onActionOpenTriggered methods are declared in pdfviewer.h, they don't seem to be defined anywhere.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              axelspoerl Axel Spoerl
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes