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

QtCharts dllimport/export wrong for static compilation of Qt and use with CMake

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • 5.7.1
    • 5.7.0
    • Charts
    • None
    • Windows + MSVC 2015

    Description

      QtCharts dllimport/export wrong for static compilation of Qt and use with CMake => you get linking errors like:

      error LNK2019: unresolved external symbol "_declspec(dllimport) public: void __cdecl QtCharts::QLegend::setAlignment(class QFlags<enum Qt::AlignmentFlag>)" (imp?setAlignment@QLegend@QtCharts@@QEAAXV?$QFlags@W4AlignmentFlag@Qt@@@@@Z) referenced in function...

      Guess the reason is that unlike other modules that honor QT_STATIC QtCharts still uses QT_CHARTS_STATICLIB that is not set ATM.

      Attachments

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

        Activity

          People

            e0348803 Miikka Heikkinen
            cullmann Christoph Cullmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes