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. How to solve the error in qrunnable.h?
Forum Updated to NodeBB v4.3 + New Features

How to solve the error in qrunnable.h?

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.6k 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.
  • L Offline
    L Offline
    Lismoon
    wrote on last edited by
    #1

    Environment:QT 6.8.0-beta4 +Visual Studio 2022.
    I can build my app successfully,but the erorr still shows in visual studio.
    it says in D:\Qt\6.8.0\msvc2022_64\include\QtCore\qrunnable.h 24

    constexpr QRunnable() noexcept = default;
    

    "defaulted default constructor cannot be constexpr because the corresponding implicitly declared default constructor would not be constexpr”
    How can i solve this?It almost drives me crazy!

    jsulmJ 1 Reply Last reply
    0
    • L Lismoon

      Environment:QT 6.8.0-beta4 +Visual Studio 2022.
      I can build my app successfully,but the erorr still shows in visual studio.
      it says in D:\Qt\6.8.0\msvc2022_64\include\QtCore\qrunnable.h 24

      constexpr QRunnable() noexcept = default;
      

      "defaulted default constructor cannot be constexpr because the corresponding implicitly declared default constructor would not be constexpr”
      How can i solve this?It almost drives me crazy!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Lismoon said in How to solve the error in qrunnable.h?:

      How can i solve this?

      I don't think you can since it is in Qt code. You can report this on Qt developers mailing list or in Qt bug tracker. But I'm wondering why you're working with a beta version of Qt?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      L 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Lismoon said in How to solve the error in qrunnable.h?:

        How can i solve this?

        I don't think you can since it is in Qt code. You can report this on Qt developers mailing list or in Qt bug tracker. But I'm wondering why you're working with a beta version of Qt?

        L Offline
        L Offline
        Lismoon
        wrote on last edited by
        #3

        @jsulm
        Well..I thought there would be more new features than bugs

        jsulmJ 1 Reply Last reply
        0
        • L Lismoon

          @jsulm
          Well..I thought there would be more new features than bugs

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Lismoon said in How to solve the error in qrunnable.h?:

          than bugs

          In a beta version?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          VRoninV 1 Reply Last reply
          1
          • jsulmJ jsulm

            @Lismoon said in How to solve the error in qrunnable.h?:

            than bugs

            In a beta version?

            VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by
            #5

            @jsulm said in How to solve the error in qrunnable.h?:

            In a beta version?

            That line has been like that since Qt 6.0 and MSVC 2022 is a tested platform by the CI so the build is not broken.

            This must be a problem with OP's system or configuration. Did you apply custom patches? how did you run configure?

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            jsulmJ 1 Reply Last reply
            0
            • VRoninV VRonin

              @jsulm said in How to solve the error in qrunnable.h?:

              In a beta version?

              That line has been like that since Qt 6.0 and MSVC 2022 is a tested platform by the CI so the build is not broken.

              This must be a problem with OP's system or configuration. Did you apply custom patches? how did you run configure?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @VRonin That was just curious to know why OP uses a beta version.
              @Lismoon "I can build my app successfully,but the erorr still shows in visual studio" - if there is an error during the build then your app is not successfully built. Or is it a warning, not error?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              VRoninV 1 Reply Last reply
              0
              • jsulmJ jsulm

                @VRonin That was just curious to know why OP uses a beta version.
                @Lismoon "I can build my app successfully,but the erorr still shows in visual studio" - if there is an error during the build then your app is not successfully built. Or is it a warning, not error?

                VRoninV Offline
                VRoninV Offline
                VRonin
                wrote on last edited by VRonin
                #7

                @jsulm said in How to solve the error in qrunnable.h?:

                Or is it a warning, not error?

                Look like it's an intellisense message: https://bugreports.qt.io/browse/QTBUG-85644

                Don't worry OP, it happens, it's all good, you can ignore the message. It's a Visual Studio bug, not a Qt one

                "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                ~Napoleon Bonaparte

                On a crusade to banish setIndexWidget() from the holy land of Qt

                L 1 Reply Last reply
                3
                • VRoninV VRonin

                  @jsulm said in How to solve the error in qrunnable.h?:

                  Or is it a warning, not error?

                  Look like it's an intellisense message: https://bugreports.qt.io/browse/QTBUG-85644

                  Don't worry OP, it happens, it's all good, you can ignore the message. It's a Visual Studio bug, not a Qt one

                  L Offline
                  L Offline
                  Lismoon
                  wrote on last edited by
                  #8

                  @VRonin thx

                  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