warning: slot arguments need to be fully-qualified [clazy-fully-qualified-moc-types]
-
I've a project that used ti use qextserial port and I'm making it more up to date by using QSerialPort, going from Qt5 to 6.
I'm getting a load of wanrings for things like this:
void executeMessage(struct wiperNetMessageStruct *receivedMessage);
C:\Software\Qt\wipernet_monitor\mainwindow.h:187: warning: slot arguments need to be fully-qualified [clazy-fully-qualified-moc-types]
That wiperNetMessageStruct is defined in a file called defines.h.
And is as follows:
enum wiperSpeeds { WIPER_OFF, SLOW_WIPE_MODE, MEDIUM_WIPE_MODE, FAST_WIPE_MODE, SINGLE_WIPE_MODE }; struct device { bool screenHeaterOn; bool wiperHeaterOn; bool washSolenoidOn; bool purgeSolenoidOn; enum wiperSpeeds groupSpeed; };Looking around I found this reference:
https://docs.kdab.com/analysis/share/clazy-explain.html
And it talks a bit about this warning, but I can't how it corresponds to my situation. Anyone able to advise how to fix this warning please?
-
I've a project that used ti use qextserial port and I'm making it more up to date by using QSerialPort, going from Qt5 to 6.
I'm getting a load of wanrings for things like this:
void executeMessage(struct wiperNetMessageStruct *receivedMessage);
C:\Software\Qt\wipernet_monitor\mainwindow.h:187: warning: slot arguments need to be fully-qualified [clazy-fully-qualified-moc-types]
That wiperNetMessageStruct is defined in a file called defines.h.
And is as follows:
enum wiperSpeeds { WIPER_OFF, SLOW_WIPE_MODE, MEDIUM_WIPE_MODE, FAST_WIPE_MODE, SINGLE_WIPE_MODE }; struct device { bool screenHeaterOn; bool wiperHeaterOn; bool washSolenoidOn; bool purgeSolenoidOn; enum wiperSpeeds groupSpeed; };Looking around I found this reference:
https://docs.kdab.com/analysis/share/clazy-explain.html
And it talks a bit about this warning, but I can't how it corresponds to my situation. Anyone able to advise how to fix this warning please?
@DiBosco said in warning: slot arguments need to be fully-qualified [clazy-fully-qualified-moc-types]:
C:\Software\Qt\wipernet_monitor\mainwindow.h:187: warning: slot arguments need to be fully-qualified [clazy-fully-qualified-moc-types]
That wiperNetMessageStruct is defined in a file called defines.h.
Is the
defines.hincluded intomainwindow.h(no use if inmainwindow.cpp) and prior to line 187? -
@DiBosco said in warning: slot arguments need to be fully-qualified [clazy-fully-qualified-moc-types]:
C:\Software\Qt\wipernet_monitor\mainwindow.h:187: warning: slot arguments need to be fully-qualified [clazy-fully-qualified-moc-types]
That wiperNetMessageStruct is defined in a file called defines.h.
Is the
defines.hincluded intomainwindow.h(no use if inmainwindow.cpp) and prior to line 187?@JonB said in warning: slot arguments need to be fully-qualified [clazy-fully-qualified-moc-types]:
@DiBosco said in warning: slot arguments need to be fully-qualified [clazy-fully-qualified-moc-types]:
C:\Software\Qt\wipernet_monitor\mainwindow.h:187: warning: slot arguments need to be fully-qualified [clazy-fully-qualified-moc-types]
That wiperNetMessageStruct is defined in a file called defines.h.
Is the
defines.hincluded intomainwindow.h(no use if inmainwindow.cpp) and prior to line 187?Yes, but it's the weirdest thing, I just took out another warning (unused variable) and all those warnings have disappeared. Hey ho.