Results 1 to 5 of 5

Thread: Using enum as parameter to slot functions

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Using enum as parameter to slot functions

    You are trying to connect signal without parameter to slot with parameter. This is impossible. Parameters of signal and slot must be the same type. I think that QSignalMapper is what you need.

  2. The following user says thank you to Lesiok for this useful post:

    Ponnytail (10th November 2013)

Similar Threads

  1. How to declare SLOT as a parameter to member function?
    By QPlace in forum Qt Programming
    Replies: 2
    Last Post: 17th July 2018, 00:41
  2. Slot - Signal with parameter
    By Lodhart in forum Newbie
    Replies: 8
    Last Post: 10th April 2013, 10:08
  3. Replies: 3
    Last Post: 26th August 2011, 07:17
  4. Problem with connect() (enum-type as parameter)
    By alu23 in forum Qt Programming
    Replies: 3
    Last Post: 9th May 2008, 07:46
  5. How to add a parameter to a slot
    By Potch in forum Newbie
    Replies: 4
    Last Post: 5th May 2008, 23:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.