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. A lot of mistakes !!)
Qt 6.11 is out! See what's new in the release blog

A lot of mistakes !!)

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 993 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.
  • M Offline
    M Offline
    Mykhailo 0
    wrote on last edited by
    #1

    Good evening, before the errors appeared, the project was compiled without errors, and at some point the errors appeared at a size of 461
    Tell me what could be the reason

    Screenshot_67.png

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

      Hi
      it seems to think m_mainwindow is not a QWidget child.

      So check the class in .h and the Qmainwindow include.

      Other reasons i have seen is circular includes . like you include where m_mainwindows type/class lives and it includes presenter

      also, clean out the build folder if possible so you are sure its fresh compiled.

      1 Reply Last reply
      5
      • M Mykhailo 0

        Good evening, before the errors appeared, the project was compiled without errors, and at some point the errors appeared at a size of 461
        Tell me what could be the reason

        Screenshot_67.png

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        Hi @Mykhailo-0, the error messages come from the Clang Code Model. Sometimes, it can make mistakes.

        1. Can you still compile your project even if the error messages are there?
        2. If you restart Qt Creator, do the error messages disappear?

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        1
        • C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #4

          The first error is on line 54. Fix that and I suspect many of the later errors will disappear.
          We cannot see line 54 of your code. I would guess that you have a member variable of type QWidget (not QWidget*), which is very unusual itself, and you are trying to initialise or assign it a value of type MainWindow.

          From some of your other code it looks like your m_mainwindow and m_donor_dialog are smart pointers of some sort. The QObject ownership in general and C++ scoping (for your modal dialog) generally make smart pointers unecessary for Qt widgets.

          1 Reply Last reply
          1
          • M Offline
            M Offline
            Mykhailo 0
            wrote on last edited by
            #5

            Thanks everyone for the answers

            The situation is not clear

            Due to the fact that on the qt version
            5.6.3
            There are no errors at all, everything works and starts without erroneous

            But on version qt 5.13.0
            Errors appeared, although literally not long ago everything was assembled normally without errors

            JKSHJ 1 Reply Last reply
            0
            • M Mykhailo 0

              Thanks everyone for the answers

              The situation is not clear

              Due to the fact that on the qt version
              5.6.3
              There are no errors at all, everything works and starts without erroneous

              But on version qt 5.13.0
              Errors appeared, although literally not long ago everything was assembled normally without errors

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              @Mykhailo-0 said in A lot of mistakes !!):

              The situation is not clear

              Please answer my questions:

              1. Can you still compile your project even if the error messages are there?
              2. If you restart Qt Creator, do the error messages disappear?

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              M 2 Replies Last reply
              1
              • JKSHJ JKSH

                @Mykhailo-0 said in A lot of mistakes !!):

                The situation is not clear

                Please answer my questions:

                1. Can you still compile your project even if the error messages are there?
                2. If you restart Qt Creator, do the error messages disappear?
                M Offline
                M Offline
                Mykhailo 0
                wrote on last edited by
                #7

                @JKSH

                1. On version qt 5.13.0, the project does not start, it just writes a lot of errors and that's it
                  2.It doesn't help

                It's just strange why on version 5.6.3 it works without errors.

                Is it because of the compilers?

                1 Reply Last reply
                0
                • JKSHJ JKSH

                  @Mykhailo-0 said in A lot of mistakes !!):

                  The situation is not clear

                  Please answer my questions:

                  1. Can you still compile your project even if the error messages are there?
                  2. If you restart Qt Creator, do the error messages disappear?
                  M Offline
                  M Offline
                  Mykhailo 0
                  wrote on last edited by
                  #8

                  @JKSH I figured out the matter was in the compiler
                  I attach the screen! Screenshot_68.png

                  JKSHJ 1 Reply Last reply
                  0
                  • M Mykhailo 0

                    @JKSH I figured out the matter was in the compiler
                    I attach the screen! Screenshot_68.png

                    JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #9

                    @Mykhailo-0 said in A lot of mistakes !!):

                    @JKSH I figured out the matter was in the compiler
                    I attach the screen! Screenshot_68.png

                    That's very strange.

                    Can you please share Line 54 of presenter.cpp as mentioned by @ChrisW67?

                    Also, can you please show us presenter.h?

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    1 Reply Last reply
                    1

                    • Login

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