My QT Library is 4.2.3, not 4.3.x
The function setTitleBarWidget() is in QT4.3

Can anyone help that, if my QT library is 4.2.x?