Okay, I am not a specialist on python, couldn't even call myself a beginner. However I think you don't need this:
Qt Code:
opt.rect = option.rectTo copy to clipboard, switch view to plain text mode
Just use option.rect directly.
Appart from that there is nothing I could say is wrong or unnecessary. Have you tried to fill option.rect with some color?
Bookmarks