Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtQuick 1.0 with opengl support?
Forum Updated to NodeBB v4.3 + New Features

QtQuick 1.0 with opengl support?

Scheduled Pinned Locked Moved QML and Qt Quick
12 Posts 2 Posters 5.3k 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.
  • T Offline
    T Offline
    torstenlabs
    wrote on last edited by
    #3

    Here are my configure options. Is there everthing in or is there some option missing for opengl support in Qt 4.7.2?

    @./configure
    -verbose
    --force-pkg-config
    -no-separate-debug-info
    -prefix /usr
    -hostprefix $(STAGING_DIR)/usr
    -fast
    -no-rpath
    -nomake examples
    -nomake demos
    -opensource -confirm-license
    -platform linux-g++
    -arch linux-g++
    -xplatform qws/linux-x86-g++
    -xplatform qws/linux-x86-g++
    -no-pch
    -qt3support
    -no-openssl
    -no-webkit
    -no-multimedia
    -no-phonon
    -no-cups
    -no-nas-sound
    -no-scripttools
    -qt-zlib
    -qt-gif
    -qt-libtiff
    -qt-libpng
    -qt-libmng
    -qt-libjpeg
    -xmlpatterns
    -svg
    -qt-sql-sqlite@


    Using Qt on Linux, Windows and Embedded

    1 Reply Last reply
    0
    • T Offline
      T Offline
      torstenlabs
      wrote on last edited by
      #4

      I could solve this problem:

      When i enable the graphicsystem opengl i got the error message “Unable to load graphicssystem “opengl”“….Does anybody know howto solve it?

      I forgot to copy the /usr/plugins/ to my target. Now i do not get this error, but the performance for the home control demo is still very bad.


      Using Qt on Linux, Windows and Embedded

      1 Reply Last reply
      0
      • L Offline
        L Offline
        ludde
        wrote on last edited by
        #5

        To be able to use the opengl graphicssystem, I would assume that you would need to pass the '-graphicssystem opengl' option to configure. And probably also '-opengl es1' or '-opengl es2' to specify the version of OpenGL ES to use. But maybe those get set to suitable values by default.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          torstenlabs
          wrote on last edited by
          #6

          I still make no performance difference in Qt 4.7.2 i will try this with Qt5 now


          Using Qt on Linux, Windows and Embedded

          1 Reply Last reply
          0
          • T Offline
            T Offline
            torstenlabs
            wrote on last edited by
            #7

            Is there any way to test the that opengl is really used by declarative view? I allready took another opengl demo from qt (pathstroke). This one runs very well on it.


            Using Qt on Linux, Windows and Embedded

            1 Reply Last reply
            0
            • L Offline
              L Offline
              ludde
              wrote on last edited by
              #8

              Are you using the -graphicssystem option or a QGlWidget as viewport? Or both?

              1 Reply Last reply
              0
              • T Offline
                T Offline
                torstenlabs
                wrote on last edited by
                #9

                i use this command: ./smarthome -graphicssystem opengl -opengl es2
                i use this demo http://qt-project.org/wiki/Home_Control_Demo
                with Qt 4.7.2 on Linux X11

                Thx for your help!!


                Using Qt on Linux, Windows and Embedded

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  ludde
                  wrote on last edited by
                  #10

                  OK, but I don't think you can use '-opengl es2' as an option to the application, it is a configure option. '-graphicssystem opengl' happens to be both a configure option and an application option.
                  And to be able to use a QGlWidget as viewport, you'll have to modify the C++ source code.

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    torstenlabs
                    wrote on last edited by
                    #11

                    At the moment i do create the Qml Viewer like this:

                    @ QmlApplicationViewer viewer;
                    viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
                    viewer.setMainQmlFile(QLatin1String("qml/smarthome/smarthome.qml"));
                    viewer.show();@

                    Could you give me a help what i have to do different?

                    Thx


                    Using Qt on Linux, Windows and Embedded

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      ludde
                      wrote on last edited by
                      #12

                      Haven't used the QmlApplicationViewer, so I don't know how to do that, sorry. I assume you would have to change the QmlApplicationViewer source code, where the declarative view is created. Just create a QGlWidget, and set it as the declarative view's viewport. You may also have to adjust its QGlFormat to something suitable for your device.

                      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