Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37256

radiobutton labels don't get rendered when using common style

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • Some future release
    • QPA: Direct2D
    • None
    • Windows7, Direct2D QPA, MSVC2012

      Run examples/widgets/widgets/styles with Norwegian wood and XP style you will notice the radio buttons missing text from currently selected item.
      Both styles run common style code where we end up with a pen only having brush color and that leads our text drawing code to bail out. Some reminiscent of glyph outlines perhaps.

       
      void QWindowsDirect2DPaintEngine::drawTextItem(const QPointF &p, const QTextItem &textItem)
              if (qpen_style(d->pen.qpen) == Qt::NoPen)
                 return;
      

      There is another bug where text is not getting rendered in that example, but that seems to be about clipping.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            e0150566 Janne Roine
            e0150566 Janne Roine
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes