title: QLabel border won't display with pixmap
body: <p>I can get a border to display on my <code>QLabels</code> just fine:</p>
  
  <p><img src="https://i.stack.imgur.com/OrFNn.png" alt="enter image description here"></p>
  
  <p>But when I try to display a pixmap in them, the border goes away:</p>
  
  <p><img src="https://i.stack.imgur.com/pzVlM.png" alt="enter image description here"></p>
  
  <p>I set the frame properties in the constructor of my <code>QLabel</code> subclass:</p>
  
  <pre><code>ObjectSlot::ObjectSlot(int index) {
      setIndex(index);
  
      setFrameShape(QFrame::StyledPanel);
      setFrameShadow(QFrame::Raised);
      setLineWidth(3); 
      setMidLineWidth(3);
  
      setAlignment(Qt::AlignCenter);
      return;
  }
  </code></pre>
  
  <p>The pixmap is set in the <code>paintEvent</code>:</p>
  
  <pre><code>void ObjectSlot::paintEvent(QPaintEvent* event) {
      QPixmap* image = new QPixmap("://images/Box.png");
      setPixmap(image-&gt;scaled(width(),height(),Qt::KeepAspectRatio));
      QLabel::paintEvent(event);
  }
  </code></pre>
  
  <p>Why does the border go away? Why is life so cruel?</p>