Qt compatibility fix