22 QOpenGLVersionProfile();
23 explicit QOpenGLVersionProfile(
const QSurfaceFormat &format);
24 QOpenGLVersionProfile(
const QOpenGLVersionProfile &other);
25 ~QOpenGLVersionProfile();
27 QOpenGLVersionProfile &operator=(
const QOpenGLVersionProfile &rhs);
29 std::pair<
int,
int> version()
const;
30 void setVersion(
int majorVersion,
int minorVersion);
32 QSurfaceFormat::OpenGLContextProfile profile()
const;
33 void setProfile(QSurfaceFormat::OpenGLContextProfile profile);
35 bool hasProfiles()
const;
36 bool isLegacyVersion()
const;
40 QOpenGLVersionProfilePrivate* d;
42 friend bool operator==(
const QOpenGLVersionProfile &lhs,
const QOpenGLVersionProfile &rhs)
noexcept
44 if (lhs.profile() != rhs.profile())
46 return lhs.version() == rhs.version();
49 friend bool operator!=(
const QOpenGLVersionProfile &lhs,
const QOpenGLVersionProfile &rhs)
noexcept
51 return !operator==(lhs, rhs);