Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt5 QOpengGLWidget ios
Forum Updated to NodeBB v4.3 + New Features

Qt5 QOpengGLWidget ios

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 1.0k 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.
  • M Offline
    M Offline
    MLGDN
    wrote on last edited by
    #1

    now I use Qt5.5.1 as my tool. Before, I developed a android application , use QOpenGLWidget to render yuv,and it work well both on windows and android moblie。 now , I change the platform to ios, after resolvng some problems, it worked。it looks everything is ok in simulator ,but when I make it running in my iphone 6 , something wrong. Since I need several windows to show video, the application show 4 window at first, but in my moble it not work fluently when I switch UI window even I haven't make it to show video, if I want to show video, it work worse. I find a strange phenomenon, if I make it show only one window, it work well. after checking my code I find a phenomenon. in the subclass of QOpenGLWidget, the paintGL() do the draw, and the
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ); is used to clean buffer, and it is important. But if I disable the code, switch UI window work fluently, video can't be show.
    in addition, my all widgets are on the QGraphicsView and QGraphicsScene , as I need them to achieve a animation effect .
    I confused, how can I to solve this problem.
    I am a newer, not familiar with many thing, forgive my poor english.

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

      Hi,

      To be sure I understand you correctly: are you trying to show 4 OpenGL widgets on a QGraphicsView ?

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

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        To be sure I understand you correctly: are you trying to show 4 OpenGL widgets on a QGraphicsView ?

        M Offline
        M Offline
        MLGDN
        wrote on last edited by
        #3

        @SGaist

        yes,the QGraphicsView is a backgound, but it is not a must, I can remove it,only use QWidget as a base。 I think the problem may caused by OpenGL ,I commit a demo for test in a QtBug report hoping someone can help me。

        https://bugreports.qt.io/browse/QTBUG-52717

        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