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

Automatically create q${module}global.h headers

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.8
    • 6.0.0
    • Build System: CMake
    • None
    • All
    • d2f701518 (dev), 3b534905c (dev), e5d7c1508 (dev), 4f68ed4c2 (dev), c10e56bdb (dev), c521359de (dev), fb0ee24b9 (dev), 276c13441 (dev), 91654a54e (dev), 581e01811 (dev), c2e4b184c (dev), f6bbc0858 (dev), 73d5bf51f (dev), f36097b31 (dev), 776946919 (dev)

      We have those q${module}global.h headers containing export macros like this:

      #ifndef QTWIDGETSGLOBAL_H
      #define QTWIDGETSGLOBAL_H
      
      #include <QtGui/qtguiglobal.h>
      #include <QtWidgets/qtwidgets-config.h>
      
      QT_BEGIN_NAMESPACE
      
      #ifndef QT_STATIC
      #  if defined(QT_BUILD_WIDGETS_LIB)
      #    define Q_WIDGETS_EXPORT Q_DECL_EXPORT
      #  else
      #    define Q_WIDGETS_EXPORT Q_DECL_IMPORT
      #  endif
      #else
      #  define Q_WIDGETS_EXPORT
      #endif
      
      QT_END_NAMESPACE
      
      #endif // QTGUIGLOBAL_H
      

      They're almost the same for every macro and could be automatically generated by CMake.

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

            semlanik Alexey Edelev
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There is 1 open Gerrit change