thanks marcel for the code..
just one thing the line if( tabRect.topLeft.x() >= barTopRight.x(i) ), is giving me the "true" status in both the cases.
In my case the TabWidget is given a resize event during the initialisation of the screen , but the above code always gives the default size, so I have modified the code to the code given below:
if(tabRect.topLeft().x() >= QApplication::desktop()->width() )
The tabbar is resized to desktop's width in the starting.
Bookmarks