Finally I got it 
The problem was caused by my enum declaration and a mixed up macro usage:
enum class GestureState
{
NoGesture,
GestureStarted,
GestureUpdated,
GestureFinished,
};
Q_ENUMS(GestureState)//mixed up, has to be Q_ENUM (without s) for Qt >= 5.5
enum class GestureState
{
NoGesture,
GestureStarted,
GestureUpdated,
GestureFinished,
};
Q_ENUMS(GestureState)//mixed up, has to be Q_ENUM (without s) for Qt >= 5.5
To copy to clipboard, switch view to plain text mode
typedef enum
{
NoGesture,
GestureStarted,
GestureUpdated,
GestureFinished,
}GestureState;
Q_ENUMS(GestureState) //ok with this enum and Qt <5.5
typedef enum
{
NoGesture,
GestureStarted,
GestureUpdated,
GestureFinished,
}GestureState;
Q_ENUMS(GestureState) //ok with this enum and Qt <5.5
To copy to clipboard, switch view to plain text mode
Bookmarks