In Qt’s qrect.h I found class declaration starting like this:
class Q_CORE_EXPORT QRect {
};
As you can see there are two identifiers after class keyword. How shall I understand this?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Q_CORE_EXPORTis a macro that gets expanded to different values depending on the context in which it’s compiled.A snippet from that source:
Those values (
__declspec(dllexport),__attribute__((visibility("default"))), etc.) are compiler-specific attributes indicating visibility of functions in dynamic libraries.