Well, it worked, after QLabel was parented to the tab! Usually these things are auto-parented; and that's why the confusion.

Qt Code:
  1. {
  2. QLabel *label = new QLabel("foo", &tw);
  3. tw.setCornerWidget (label);
  4. }
To copy to clipboard, switch view to plain text mode