Quote Originally Posted by anda_skoa View Post
Since a QRect is just a data class and has no visualization, how are you drawing the rectange?

Cheers,
_
I am drawing it on the pdf using QPainter on QPrinter.

Qt Code:
  1. QPrinter reportPrinter;
  2. QPainter reportPainter;
  3.  
  4. //SETTING PDF FORMAT
  5. reportPrinter.setOutputFormat(QPrinter::PdfFormat);
  6.  
  7. //DRAWING RECTANGLE ON THE PDF
  8. QRect rect = QRect(0,50,30,20);
  9. reportPainter.drawRect(rect );
  10. reportPainter.drawText(rect , Qt::AlignCenter | Qt::TextWordWrap, "SOME TEXT INSIDE");
To copy to clipboard, switch view to plain text mode 
I want to draw QRect rect without borders.