I'm trying to render blue text on the Dense4Pattern background of black and white color.
Rendered text is not solid, there are gaps in characters.

Following is the constructor of the widget:
Qt Code:
  1. QLabel* pLabel = new QLabel(QString::fromUtf8(textPtr), this);
  2.  
  3. QPalette backgroundPalette;
  4. QBrush windowBrush = QBrush(Qt::black);
  5. windowBrush .setStyle(Qt::SolidPattern);
  6. backgroundPalette.setBrush(QPalette::Window, windowBrush);
  7. QBrush baseBrush = QBrush(Qt:white);
  8. baseBrush .setStyle(Qt::Dense4Pattern);
  9. backgroundPalette.setBrush(QPalette::Base, baseBrush);
  10. this->setPalette(backgroundPalette);
  11.  
  12. QPalette textPalette;
  13. QBrush textBrush = QBrush(Qt::blue);
  14. textBrush.setStyle(Qt::SolidPattern);
  15. textPalette.setBrush(QPalette::WindowText, textBrush);
  16. pLabel->setPalette(textPalette);
To copy to clipboard, switch view to plain text mode 

Does anybody know what is the problem and how it can be solved?
Thanks in advance for your help.