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. OpenGLES2 window location problem of QT5.3 based embeded Linux
Forum Updated to NodeBB v4.3 + New Features

OpenGLES2 window location problem of QT5.3 based embeded Linux

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 2 Posters 1.2k 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.
  • E Offline
    E Offline
    Edward1988
    wrote on last edited by
    #1

    Hello, everyone!
    Now in the company we are doing development Qt based on embedded Linux & QT, need to use OpenGL ES2. When chosing Qt version, we respectively set up QT4.8 and QT5.3 environment for related test, finding that QT4.8 can run test programs normally, while version 5.3 have a serious problem that window can not be located. correctly. Running "hellogl_es2" test for example, the effect is as follows:
    QT4.8:

    QT5.3:

    Two versions use the same code provided by the QT package. It can be seen that,under version 5.3 the opengl rendering window fills full screen and covers the other controls, unable to be located.
    Running other Opengl test programs of QT5.3 also has the same problem. "hellogl_es2" uses QT4 QGLWidget, but I have tried to use QT5 QWindow or so,the problem still can't be solved. We also find that other Un-Opengl test programs of QT5.3 also have problem that can't be set window, if the window size is smaller than the screen, it is always pulled into full screen automatically.
    QT has developed to version 5.5, so if possible we want to use QT5, but if the problem that hellogl_es2 opengl window can't be located can't be solved, we can't use it.
    Therefore, I come to ask for help. Is there anyone find the similar problems? If someone has solution, please feel free to comment, thanks first!!

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

      Hi and welcome to devnet,

      What do you mean by cannot be located ?

      By the way, are you missing a link to some images to show the differences between Qt 4 and Qt 5 ?

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

      E 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        What do you mean by cannot be located ?

        By the way, are you missing a link to some images to show the differences between Qt 4 and Qt 5 ?

        E Offline
        E Offline
        Edward1988
        wrote on last edited by
        #3

        Thanks for replay! It takes me effort to upload the image.
        QT4.8:
        http://img.bbs.csdn.net/upload/201511/04/1446651731_304814.jpg

        QT5.3:
        http://img.bbs.csdn.net/upload/201511/04/1446651682_154934.jpg

        And "cannot be located" means, even if I set the opengl window size small than the screen using SetGeometry, the window will also cover the whole screen, and cover the other controls.

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

          Ok, that confirms what I suspected. If you need a windows manager for your application, you should take a look at QtWayland for Qt 5

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

          E 1 Reply Last reply
          0
          • SGaistS SGaist

            Ok, that confirms what I suspected. If you need a windows manager for your application, you should take a look at QtWayland for Qt 5

            E Offline
            E Offline
            Edward1988
            wrote on last edited by
            #5

            @SGaist That's a possiible solution, I'd like to have a try, thaks for you suggestion!

            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