When I try to use QSet and a custom class :

Qt Code:
  1. QSet<Alarm> alarmList;
  2. Alarm *a = new Alarm();
  3. alarmList.insert(a);
To copy to clipboard, switch view to plain text mode 

I get the following error:
Qt Code:
  1. error: no matching function for call to 'QSet<Alarm>::insert(Alarm*&)'
  2. note: candidates are: QSet<T>::const_iterator QSet<T>::insert(const T&) [with T = Alarm]
To copy to clipboard, switch view to plain text mode