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. signal in mainWindow and slot in other class
Forum Updated to NodeBB v4.3 + New Features

signal in mainWindow and slot in other class

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 402 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by koahnig
    #1

    I don't understand how I write:
    I tried:

    connect(this,SIGNAL(clear_Adv_Cam),Cam,SLOT(clear()));
    

    but it doesn't work

    [edit, koahnig, added code tags]

    K 1 Reply Last reply
    0
    • ? A Former User

      I don't understand how I write:
      I tried:

      connect(this,SIGNAL(clear_Adv_Cam),Cam,SLOT(clear()));
      

      but it doesn't work

      [edit, koahnig, added code tags]

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @vale88

      I guess this would be better to add empty paranthesis for your signal

      connect(this,SIGNAL(clear_Adv_Cam()),Cam,SLOT(clear()));
      

      AFAIK you need to have the parameter list for both signal and slot. Since it is empty you need to have the empty parenthesis.

      Vote the answer(s) that helped you to solve your issue(s)

      ? 1 Reply Last reply
      2
      • K koahnig

        @vale88

        I guess this would be better to add empty paranthesis for your signal

        connect(this,SIGNAL(clear_Adv_Cam()),Cam,SLOT(clear()));
        

        AFAIK you need to have the parameter list for both signal and slot. Since it is empty you need to have the empty parenthesis.

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @koahnig it works

        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