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

Hiragana text painted over when setting stylesheet background to transparent

    XMLWordPrintable

Details

    • c9e96db7879d793d5ea12b6a0a2d6bce74c3e537

    Description

      Steps to reproduce:

      1) Run the code below
      2) Switch to Japanese IME (Hiragana)
      3) Type "aaaa" (See trans-input.png)
      4) Type space key (See trans-henkan.png) - converting text is painted out with black unexpectedly

      It seems both background and foreground colour is set with black.

      Expected result is shown in the attached no-trans-henkan.png.

      #include <QtGui>
      
      class Foo : public QWidget {
      public:
          Foo() : QWidget(0) {
              QVBoxLayout *lay = new QVBoxLayout(this);
              QTextEdit *textEdit = new QTextEdit;
              textEdit->setStyleSheet("background:transparent");
              lay->addWidget(textEdit);
      
          }
      };
      
      int main(int argc, char *argv[]) {
      
          QApplication app(argc, argv);
      
          Foo foo;
          foo.show();
      
          return app.exec();
      }
      

      Attachments

        1. no-trans-henkan.png
          no-trans-henkan.png
          21 kB
        2. trans-henkan.png
          trans-henkan.png
          22 kB
        3. trans-input.png
          trans-input.png
          41 kB

        Issue Links

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

          Activity

            People

              mitch_curtis Mitch Curtis
              mitch_curtis Mitch Curtis
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes