What need determined in class that his add in QSet?
-
I have class:
@
class MyClass {
public:
MyClass() {}
}
@What need determined in class that next code worked?
@
QSet<MyClass> s;
MyClass m;s << m;
@ -
Hi,
It's described "here":http://doc.qt.io/qt-5/containers.html#assignable-data-type
-
[quote author="SGaist" date="1423356763"]Hi,
It's described "here":http://doc.qt.io/qt-5/containers.html#assignable-data-type[/quote]To clarify SGaist's hint, follow the instructions for QMap<Key, T>. QSet has the same requirements as QMap's Key.