title: Qmessagebox background and text color
body: <p><a href="https://i.stack.imgur.com/Sx1Jh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sx1Jh.png" alt="enter image description here"></a></p>
  
  <p>I have message response as you see on the above. I've managed to colour background to black:</p>
  
  <pre><code>msg.setStyleSheet("background-color: rgb(0, 0, 0);")
  </code></pre>
  
  <p>I've tried with same way for the text but it looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/f5fJy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f5fJy.png" alt="enter image description here"></a></p>
  
  <pre><code>msg.setStyleSheet("text-color: rgb(255, 255, 255);")
  </code></pre>
  
  <p><strong><em>My only purpose is texts are white and background is black...</em></strong></p>
  
  <p>Here is my part of code:</p>
  
  <pre><code>msg = QMessageBox()
  msg.setText("Message has been sended")
  msg.setWindowTitle("SENT")
  msg.setWindowIcon(QtGui.QIcon("black tic.png"))
  msg.setIcon(QMessageBox.Information)
  msg.setStyleSheet("background-color: rgb(0, 0, 0);")
  msg.setStyleSheet("text-color: rgb(255, 255, 255);")
  msg.exec_()
  </code></pre>