This line kills the border:
Quote Originally Posted by wagmare View Post
m_pCanvas->setContentsMargins(0,0,0,0);
In earlier Qt versions only QFrame had a contentsRect and the margins were the frame width. This has been changed with Qt4, leaving frames having this odd relationship to the margins.

Uwe