In order for this to compile it needs to include qmainwindow.h. As of no= w=20 you get a compilation error if you include ktoolbar.h before=20 qmainwindow.h. I can commit this if it's ok. /Mauritz GlobeCom AB