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

WhatsThis doesn't render text correctly when using style sheets on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.6.0
    • 4.4.0
    • Widgets: Style Sheets
    • None
    • c5a8d26d2337c3ed01f66783b69c5090c515be38

      The code below reproduces the problem mentioned in the title. The message will be cut. This problem was only observed on Windows.

      Test case main.cpp to reproduce
      //-------------------------------------------------------------
      #include <QtGui>

      int main( int argc, char * argv[] )
      {
      QApplication app( argc, argv );

      // COMMENT THE NEXT LINE AND EVERYTHING RUNS SMOOTHLY
      qApp->setStyleSheet( "QWidget

      { font: bold large \"Trebuchet MS\"; }

      " );

      QDialog dlg;
      QHBoxLayout * layout = new QHBoxLayout( & dlg );
      dlg.setLayout( layout );

      QLabel * label = new QLabel( "Right-click me", & dlg );
      label->setWhatsThis( "This WhatsThis text might miss a couple of words." );
      layout->addWidget( label );

      dlg.show();
      return app.exec();
      }
      //-------------------------------------------------------------

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

            bachewii Jens
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes