21 QOpenGLVersionProfile();
22 explicit QOpenGLVersionProfile(
const QSurfaceFormat &format);
23 QOpenGLVersionProfile(
const QOpenGLVersionProfile &other);
24 ~QOpenGLVersionProfile();
26 QOpenGLVersionProfile &operator=(
const QOpenGLVersionProfile &rhs);
28 std::pair<
int,
int> version()
const;
29 void setVersion(
int majorVersion,
int minorVersion);
31 QSurfaceFormat::OpenGLContextProfile profile()
const;
32 void setProfile(QSurfaceFormat::OpenGLContextProfile profile);
34 bool hasProfiles()
const;
35 bool isLegacyVersion()
const;
39 QOpenGLVersionProfilePrivate* d;
41 friend bool operator==(
const QOpenGLVersionProfile &lhs,
const QOpenGLVersionProfile &rhs)
noexcept
43 if (lhs.profile() != rhs.profile())
45 return lhs.version() == rhs.version();
48 friend bool operator!=(
const QOpenGLVersionProfile &lhs,
const QOpenGLVersionProfile &rhs)
noexcept
50 return !operator==(lhs, rhs);