Quote Originally Posted by jpn
Override QWidget::resizeEvent(). Here's a pseudo algo:

Qt Code:
  1. resizeEvent
  2. {
  3. // include title and frames
  4. region = frameGeometry // frameGeometry relative to the widget (not global)
  5.  
  6. // exclude the area inside frames
  7. region -= geometry // geometry relative to the widget (not global)
  8.  
  9. // include children
  10. region += childrenRegion
  11.  
  12. // apply mask
  13. setMask region
  14. }
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..
I'm really a dumbass, can you give the code of the image you attached, it would be much better to understand and help me stopping yelling against my computer.
I m too young to have white hair !!!