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

DocumentViewer example does not compile

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes