Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. WA_AlwaysStackOnTop error [SOLVED]
QtWS25 Last Chance

WA_AlwaysStackOnTop error [SOLVED]

Scheduled Pinned Locked Moved Unsolved QtonPi
24 Posts 2 Posters 6.9k Views
  • 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.
  • N Offline
    N Offline
    Niko Hallikainen
    wrote on last edited by Niko Hallikainen
    #1

    So how I can fix this error?
    mainwindow.cpp: In constructor 'MainWindow::MainWindow(QWidget*)':
    mainwindow.cpp:122:35: error: 'WA_AlwaysStackOnTop' is not a member of 'Qt'
    mainwindow.cpp:123:22: error: 'class QQuickWidget' has no member named 'setClearColor'
    Makefile:2002: recipe for target 'mainwindow.o' failed
    make: *** [mainwindow.o] Error 1

    Regards, Niko H.

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

      Hi,

      WA_AlwaysStackOnTop is part of Qt since 5.4. Are you using that version or a more recent ?

      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
      • N Offline
        N Offline
        Niko Hallikainen
        wrote on last edited by
        #3

        Yes, I use 5.3, how to upgrade 5.4?

        Regards, Niko H.

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

          It depends on how you installed Qt. If using the online installer, you can simply run the maintenance tool application.

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

          N 1 Reply Last reply
          0
          • SGaistS SGaist

            It depends on how you installed Qt. If using the online installer, you can simply run the maintenance tool application.

            N Offline
            N Offline
            Niko Hallikainen
            wrote on last edited by
            #5

            @SGaist I mean how I build that for Raspberry pi?

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

              Did you already cross-compile Qt for the Raspberry Pi or are you using a Linux distribution that provides it ?

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

              N 2 Replies Last reply
              0
              • SGaistS SGaist

                Did you already cross-compile Qt for the Raspberry Pi or are you using a Linux distribution that provides it ?

                N Offline
                N Offline
                Niko Hallikainen
                wrote on last edited by
                #7

                @SGaist I use repository where is 5.3 version qt.

                N 1 Reply Last reply
                0
                • N Niko Hallikainen

                  @SGaist I use repository where is 5.3 version qt.

                  N Offline
                  N Offline
                  Niko Hallikainen
                  wrote on last edited by Niko Hallikainen
                  #8

                  I try compile in raspberry pi qt 5.5.1, but I get this error:
                  The test for linking against libxcb and support libraries failed!
                  You might need to install dependency packages, or pass -qt-xcb.
                  See src/plugins/platforms/xcb/README.
                  I'am already installed xcb, but it's not working....

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

                    Did you install the dev packages ?

                    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
                    • SGaistS SGaist

                      Did you already cross-compile Qt for the Raspberry Pi or are you using a Linux distribution that provides it ?

                      N Offline
                      N Offline
                      Niko Hallikainen
                      wrote on last edited by
                      #10

                      @SGaist I get same error when I do cross compile. Any tips?

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

                        Again: did you install the dev-packages of xcb ?

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

                        N 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          Again: did you install the dev-packages of xcb ?

                          N Offline
                          N Offline
                          Niko Hallikainen
                          wrote on last edited by
                          #12

                          @SGaist Maybe not, what is the packages name? Something I install, but maybe that need more packages...

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

                            The package name depends on the Linux flavor you are using. Search for xcb in the package manager of your distribution.

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

                            N 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              The package name depends on the Linux flavor you are using. Search for xcb in the package manager of your distribution.

                              N Offline
                              N Offline
                              Niko Hallikainen
                              wrote on last edited by
                              #14

                              @SGaist Hi, I try conpile, but after over 12 hours I get this error:
                              /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to `QOpenGLContextPrivate::globalShareContext()'
                              collect2: error: ld returned 1 exit status
                              Makefile.WebProcess:100: recipe for target '../../bin/QtWebProcess' failed
                              make[3]: *** [../../bin/QtWebProcess] Error 1
                              make[3]: Leaving directory '/home/pi/qt-everywhere-opensource-src-5.5.1/qtwebkit/Source/WebKit2'
                              Makefile.QtWebKit:105: recipe for target 'sub-WebKit2-WebProcess-pro-make_first-ordered' failed
                              make[2]: *** [sub-WebKit2-WebProcess-pro-make_first-ordered] Error 2
                              make[2]: Leaving directory '/home/pi/qt-everywhere-opensource-src-5.5.1/qtwebkit/Source'
                              Makefile:351: recipe for target 'sub-Source-QtWebKit-pro-make_first-ordered' failed
                              make[1]: *** [sub-Source-QtWebKit-pro-make_first-ordered] Error 2
                              make[1]: Leaving directory '/home/pi/qt-everywhere-opensource-src-5.5.1/qtwebkit'
                              Makefile:490: recipe for target 'module-qtwebkit-make_first' failed
                              make: *** [module-qtwebkit-make_first] Error 2
                              What was wrong?

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

                                Are you mixing different version of Qt ?

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

                                N 1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  Are you mixing different version of Qt ?

                                  N Offline
                                  N Offline
                                  Niko Hallikainen
                                  wrote on last edited by
                                  #16

                                  @SGaist No, I try compile 5.5.1 and also I try older version, but that give different error. This error is 5.5.1 version.

                                  BR. Niko H.

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

                                    Are you sure you're not using the older version to try to compile the webkit module ?

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

                                    N 2 Replies Last reply
                                    0
                                    • SGaistS SGaist

                                      Are you sure you're not using the older version to try to compile the webkit module ?

                                      N Offline
                                      N Offline
                                      Niko Hallikainen
                                      wrote on last edited by
                                      #18

                                      @SGaist no, it's new 5.5.1.

                                      1 Reply Last reply
                                      0
                                      • SGaistS SGaist

                                        Are you sure you're not using the older version to try to compile the webkit module ?

                                        N Offline
                                        N Offline
                                        Niko Hallikainen
                                        wrote on last edited by
                                        #19

                                        @SGaist What libs webkit need?

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

                                          It looks like you are currently linking your Qt 5.5.1 WebKit with a locally installed version of Qt. Where does /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5 come from ?

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

                                          N 2 Replies 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