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

Regression in <sup> and <sub> tag behaviour between QtDeclarative and QtQuick

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.3.2, 5.4.0 Beta
    • None
    • Linux (64bit Debian wheezy) Qt5.3.2 download

    Description

      If I run the attached qml file with ~/Qt5.3.2/5.3/gcc_64/bin/qmlviewer subscript.qml , I get the output qmlviewer_supsub.png.

      If I update the file to be import QtQuick 2.2 instead, and run ~/Qt5.3.2/5.3/gcc_64/bin/qmlscene subscript.qml, I get the output qmlscene_supsub.png.

      In my opinion (and that of various people who've noticed changes in an application originally built on Qt4.8 and QtDeclarative and now ported to Qt5 and QtQuick), the old qmlviewer (ie QtDeclarative) is a quite a bit nicer than qmlscene's presentation of sup and sub (well actually the qmlscene <sup> is quite clearly defective in comparison).

      I haven't verified it myself, but I believe the issue is the same on MacOS and iOS QML engines.

      Sorry if this is a duplicate of QTBUG-24621 or QTBUG-32948, but neither of those mention the regression in behaviour from the QtDeclarative world.

      <sup> and <sub> are listed in the supported HTML subset.

      (I also note it's possible to do some very limited subscripting/superscripting with unicode things like '²' and '₂'; these do work and don't change between qmlviewer/qmlscene... but don't actually look as good as QDeclarative's <sup> and <sub> did.)

      Attachments

        1. qmlscene_supsub.png
          qmlscene_supsub.png
          28 kB
        2. qmlviewer_supsub.png
          qmlviewer_supsub.png
          26 kB
        3. subscript.qml
          0.5 kB

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              timday Tim Day
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes