first of all, this cant really do much more than segmentation fault:
QTabBar *tabbar=new QTabWidget(this);
To copy to clipboard, switch view to plain text mode
you create pointer to QTabBar and make it pointing to QTabWidget...
tell me, what this code does:
QRect rect
= tabbar
->tabRect
(0);
QRect rect = tabbar->tabRect(0);
To copy to clipboard, switch view to plain text mode
?
If you want to get the tabbar used in QTabWidget, you have to subclass QTabWidget, because tabBar() and setTabBar() are protected methods.
Bookmarks