title: Drawing text with shadow on pixmap with QPainter
body: <p>I am working on a project in C++ with Qt, and I am trying to find a way to apply a text shadow when drawing text on a QPixmap using QPainter. </p>
  
  <p>I understand that <a href="https://doc.qt.io/qt-5/qgraphicsdropshadoweffect.html" rel="nofollow">QGraphicsDropShadowEffect</a> is a thing, and I am using in other parts of my project, but I can't for the life of me find a way to apply a QGraphicsEffect when drawing with QPainter on a pixmap. Drawing the same text multiple times with different offsets and opacities doesn't quite cut it.</p>
  
  <p>Are there any ways to do this? 
  If not, how could I go about making a function that does it, given a QGraphicsEffect to get the radius and color from?</p>
  
  <p>Thanks in advance!</p>