Quote Originally Posted by anafor2004 View Post
Thanks for your reply but i wonder that how can we connect this paint event with my label on my form ,

Do I have to use this?

class drawLabel : public QLabel,public Ui::Label
No, Because It cause a problem of inheriting two QObject. you can put
Qt Code:
  1. virtual void paintEvent ( QPaintEvent * event )
To copy to clipboard, switch view to plain text mode 
in your MyLabel class definition and then reimplement It in corresponding .cpp file.