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

Can't set background image to QTextEdit by using stylesheets in Windows environment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.5, 5.0.2
    • 4.7.4, 4.8.0, 5.0.1
    • Widgets: Style Sheets
    • None
    • qt4: 9b0922e64152bd4cd06932df247a5f80e9d069cb, qt5/qtbase/stable: f1e681bed21e131864fe1e1c91679f7a56b06823

    Description

      There seems to be a bug with setting a background image in QTextEdit.

      This works under Linux environment but not in Windows:

      QTextEdit *edit =new QTextEdit;
      edit->setStyleSheet("background-image: url(image.png);");

      With this workaround background image can be seen under Windows, but background color is not shown as red.

      edit->setStyleSheet("background-color: red; background-image: url(image.png);");

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes