Community
Participate
Working Groups
Qt Classes are defined as: class QApplication; ... class Q_WIDGETS_EXPORT QApplication : public QGuiApplication { The "Open Declaration" feature picks the prototype and not the class definition. If I remove Q_WIDGETS_EXPORT it works. Q_WIDGETS_EXPORT is finally defined as __declspec(dllexport) My workaround is to define __declspec(dllexport) as "" in "C/C++ General"->"Paths and Symbols"->"Symbols"
It works fine in this simple example: #define Q_WIDGETS_EXPORT __declspec(dllexport) class QApplication; class Q_WIDGETS_EXPORT QApplication { }; int main() { QApplication qa; } so there must be something else going on that just the macro expanding to an attribute.