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

QGLFormat: setVersion and setProfile don't work in Qt 4.7betas

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 4.7.0
    • GUI: OpenGL
    • None
    • OS: OpenSUSE 11.2 64bit,
      Graphics card: Nvidia GTX260,
      driver: NVIDIA-Linux-x86_64-195.36.07.04 (OpenGL 3.3 support).

      I want to create OpenGL 3.2 core profile context like this.
      QGLFormat format;
      format.setVersion(3,2);
      format.setProfile(QGLFormat::CompatibilityProfile);
      QGLFormat::setDefaultFormat(format);

      After the creation of QGLWidget, I check the OpenGL version and profile type. However, the results are 3.3 and unknown profile (value 0).
      It seems that the setting of QGLFormat does not work.

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

            kjernase Trond Kjernåsen (Inactive)
            zhaopengqt ZHAO Peng
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes