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. unnecessary warning
Qt 6.11 is out! See what's new in the release blog

unnecessary warning

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 347 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.
  • jronaldJ Offline
    jronaldJ Offline
    jronald
    wrote on last edited by jronald
    #1

    Some slots are connect to signal dynamically, .e.g. recent opened files
    If the function name is in a regular pattern as void on_<object name>_<signal name>(<signal parameters>);,
    there would be a warning as below:

    qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for
    

    With a regular function name, is there any way to disable the warning?

    Pl45m4P 1 Reply Last reply
    0
    • jronaldJ jronald

      Some slots are connect to signal dynamically, .e.g. recent opened files
      If the function name is in a regular pattern as void on_<object name>_<signal name>(<signal parameters>);,
      there would be a warning as below:

      qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for
      

      With a regular function name, is there any way to disable the warning?

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @jronald said in unnecessary warning:

      With a regular function name, is there any way to disable the warning?

      Either rename the function or disable ConnectSlotsByName in uic through the -a option.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      jronaldJ 1 Reply Last reply
      4
      • Pl45m4P Pl45m4

        @jronald said in unnecessary warning:

        With a regular function name, is there any way to disable the warning?

        Either rename the function or disable ConnectSlotsByName in uic through the -a option.

        jronaldJ Offline
        jronaldJ Offline
        jronald
        wrote on last edited by
        #3

        @Pl45m4 said in unnecessary warning:

        disable ConnectSlotsByName in uic through the -a option

        It works, thanks.

        With cmake, it is as below:

        set(CMAKE_AUTOUIC_OPTIONS "--no-autoconnection")
        

        PS: -a is short for --no-autoconnection

        1 Reply Last reply
        1
        • jronaldJ jronald has marked this topic as solved on

        • Login

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