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. warning: slot arguments need to be fully-qualified [clazy-fully-qualified-moc-types]
Qt 6.11 is out! See what's new in the release blog

warning: slot arguments need to be fully-qualified [clazy-fully-qualified-moc-types]

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 154 Views 1 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.
  • D Offline
    D Offline
    DiBosco
    wrote on last edited by
    #1

    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?

    JonBJ 1 Reply Last reply
    0
    • D DiBosco

      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?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @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.h included into mainwindow.h (no use if in mainwindow.cpp) and prior to line 187?

      D 1 Reply Last reply
      1
      • JonBJ JonB

        @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.h included into mainwindow.h (no use if in mainwindow.cpp) and prior to line 187?

        D Offline
        D Offline
        DiBosco
        wrote on last edited by
        #3

        @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.h included into mainwindow.h (no use if in mainwindow.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.

        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