Override QWidget::resizeEvent(). Here's a pseudo algo:
Qt Code:
resizeEvent { // include title and frames region = frameGeometry // frameGeometry relative to the widget (not global) // exclude the area inside frames region -= geometry // geometry relative to the widget (not global) // include children region += childrenRegion // apply mask setMask region }To copy to clipboard, switch view to plain text mode
PS. The indexing feature in Qt Assistant is powerful. Try entering "keywords" used in above pseudo code..
Bookmarks