I\'m trying to convert an example from the Qt Docs into Python Code and came across something strange, although I must admit I don\'t have much experience with c++. The snippet