Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. 'hasAncestor' is not a member of QStyleHelper' error from MSVC build: qwindowsvistastyle.cpp: error C2039

'hasAncestor' is not a member of QStyleHelper' error from MSVC build: qwindowsvistastyle.cpp: error C2039

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 3 Posters 2.8k Views 2 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.
  • B Offline
    B Offline
    buckler
    wrote on last edited by
    #1

    I am trying to build Qt from source using msvc_64. I downloaded the "Qt Source Package, Full Framework with Windows style line endings", extracted it, make a build directory, and then in CMD shell commands:

    ..\Qt-5.5.1\configure -release -no-accessibility -nomake tests -nomake examples

    which caused no errors, and then:

    nmake

    Help?
    Thank you,
    Andy

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

      Hi
      Sounds like this bug ?
      https://bugreports.qt.io/browse/QTBUG-30581

      1 Reply Last reply
      0
      • B Offline
        B Offline
        buckler
        wrote on last edited by
        #3

        Many thanks mrjj - that got me through that problem.

        But now, having completed the build apparently successfully, the application I am linking to cannot find what it needs for Qt5WebKitWidgets. It is looking for Qt5WebKitWidgetsConfig.cmake.

        When I built on the mac, WebKit was included without special treatment. But is this true on Windows? Do I have to do anything explicitly to build or install WebKit?

        Thank you,
        Andy

        mrjjM 1 Reply Last reply
        0
        • B buckler

          Many thanks mrjj - that got me through that problem.

          But now, having completed the build apparently successfully, the application I am linking to cannot find what it needs for Qt5WebKitWidgets. It is looking for Qt5WebKitWidgetsConfig.cmake.

          When I built on the mac, WebKit was included without special treatment. But is this true on Windows? Do I have to do anything explicitly to build or install WebKit?

          Thank you,
          Andy

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @buckler
          ok super.
          As far as I know Webkit need to be build alone
          https://trac.webkit.org/wiki/BuildingQtOnWindows
          Maybe you can find better info.

          Do you need it in the app?

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

            Hi,

            To add to @mrjj, it's fixed for 5.6

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

            B 1 Reply Last reply
            0
            • B Offline
              B Offline
              buckler
              wrote on last edited by
              #6

              Thank you! With the changes suggested here, the build is complete!

              Best for your New Year and many thanks for the help,
              Andy

              1 Reply Last reply
              0
              • SGaistS SGaist

                Hi,

                To add to @mrjj, it's fixed for 5.6

                B Offline
                B Offline
                buckler
                wrote on last edited by
                #7

                @SGaist thank you, whe you indicate it is fixed in 5.6, do you mean the original issue which I worked around by not setting no accessibility, or the issue about WebKit?

                As I indicated, I was successful in porting an application from a Mac build to Windows (with the help of mrjj). But to do it, I temporarily jettisoned WebKit from my build because it looked like it was going to be difficult to get built and integrated properly, and it was fairly easy for me to hack the application to remove the portion which uses WebKit so as to at least establish basic feasibility. But now I have the ported application working and need to get WebKit back in. Before I follow the instructions at https://trac.webkit.org/wiki/BuildingQtOnWindows, I wanted to ask whether this is really the best way to do it. It looks like it should be capable of being built like other modules, without so much extra work! Of course I'll do whatever is best, but before embarking... can anyone suggest the best method for including WebKit with the rest of my needs from qtbase?

                Many thanks,
                Andy

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

                  Since you are building from the package did you check that you have everything that's indicated here ?

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

                  B 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Since you are building from the package did you check that you have everything that's indicated here ?

                    B Offline
                    B Offline
                    buckler
                    wrote on last edited by
                    #9

                    @SGaist I have Perl and Python, but not Ruby. Of course I can add it. If I do have all these, then does the build complete it without more than the configure/nmake? If it did, that would be simple enough. Or, do I have to go through the separate steps after first doing the normal configure/name?

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

                      Since you already built the rest, you should only need to do a qmake/jom.exe combo to get the module built.

                      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

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved