I have added one qlabel in my application's statusbar . And now I have been trying to remove the borders around the QLabel.

Qt Code:
  1. label->setFrameShape(QFrame::HLine);
  2. label->setFrameStyle(QFrame::NoFrame);
  3. // label->setLineWidth(0);
  4. //label->setMidLineWidth(0);
To copy to clipboard, switch view to plain text mode 
I tried everything above, none of them work, any help is appreciated.