Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved OpenGLES2 window location problem of QT5.3 based embeded Linux

    Mobile and Embedded
    2
    5
    943
    Loading More Posts
    • 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
      Edward1988 last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • E
          Edward1988 @SGaist last edited by

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • E
              Edward1988 @SGaist last edited by

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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post