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

CSS style text-align doesn't work in QTextBrowser

    XMLWordPrintable

Details

    Description

      #include <QtGui>

      int main(int argc, char **argv)
      {
      QApplication a(argc, argv);
      QTextBrowser w;
      w.setText(
      "<html><head><STYLE type=\"text/css\"></STYLE></head>"
      "<body>"
      "<p style=\"text-align:center; color: rgb(0, 0, 255)\">Autodesk</p>"
      "<p align=\"center\">Autodesk</p>"
      "<p><center>Autodesk</center></p>"
      "</body>"
      "</html>");
      w.show();
      return a.exec();
      }

      Note: text-align is not a currently supported CSS property.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mch Jervey Kong
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes