A lot of mistakes !!)
-
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
-
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.
-
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
Hi @Mykhailo-0, the error messages come from the Clang Code Model. Sometimes, it can make mistakes.
- Can you still compile your project even if the error messages are there?
- If you restart Qt Creator, do the error messages disappear?
-
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.
-
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 erroneousBut on version qt 5.13.0
Errors appeared, although literally not long ago everything was assembled normally without errors -
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 erroneousBut on version qt 5.13.0
Errors appeared, although literally not long ago everything was assembled normally without errors@Mykhailo-0 said in A lot of mistakes !!):
The situation is not clear
Please answer my questions:
- Can you still compile your project even if the error messages are there?
- If you restart Qt Creator, do the error messages disappear?
-
@Mykhailo-0 said in A lot of mistakes !!):
The situation is not clear
Please answer my questions:
- Can you still compile your project even if the error messages are there?
- If you restart Qt Creator, do the error messages disappear?
-
@Mykhailo-0 said in A lot of mistakes !!):
The situation is not clear
Please answer my questions:
- Can you still compile your project even if the error messages are there?
- If you restart Qt Creator, do the error messages disappear?
@JKSH I figured out the matter was in the compiler
I attach the screen! Screenshot_68.png -
@JKSH I figured out the matter was in the compiler
I attach the screen! Screenshot_68.png@Mykhailo-0 said in A lot of mistakes !!):
@JKSH I figured out the matter was in the compiler
I attach the screen! Screenshot_68.pngThat's very strange.
Can you please share Line 54 of
presenter.cppas mentioned by @ChrisW67?Also, can you please show us
presenter.h?