Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QOpenGLWidget issue
Forum Updated to NodeBB v4.3 + New Features

QOpenGLWidget issue

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 131 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BenWu_94577
    wrote on last edited by BenWu_94577
    #1

    I was using the Qt 5.5.1 to work with QOpenGLWidget and it work fine.

    Recently, I upgrade the project to Qt 5.15.2. The widget can not be drawn any thing it kept black.

    Does anything change between Qt 5.5.1 and Qt 5.15.2 for QOpenGLWidget?

    The error only occur on MacOS(Big Sur) Xcode(11.5).

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      The answer is most likely yes.

      The easier to find out is to check the release notes of the releases.

      Did you check whether the standard examples works on your machine ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BenWu_94577
        wrote on last edited by BenWu_94577
        #3

        Hi

        Is it possible to us it in old method ?

        Such as

        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
        
        glGetDoublev(GL_VIEWPORT, params);
        
        glOrtho(-(GLfloat)params[2], (GLfloat)params[2], -(GLfloat)params[3], (GLfloat)params[3], -1000, 1000);
        
        glCallList( dlist );
        

        It works well in Windows platform but not works in MacOS.

        The version is Qt 5.15.2.

        Thanks for your reply

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved