QDockwidget does not have a setTabPosition() member function. I am assuming the ui object is a QMainWindow. Fix your syntax and all should be well.
If the code posted actually came from an "example provided by Qt" then you should log it is a bug against Qt specifying exactly where it exists.Qt Code:
To copy to clipboard, switch view to plain text mode
Bookmarks