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

Strange behavior while parsing Qt stylesheets

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • Not Evaluated
    • 5.12
    • 4.8.4
    • GUI: Look'n'Feel
    • None
    • Windows XP SP3, MinGW, GCC 4.6.2, Qt Creator 2.6.0

    • bbe08d6b686456297ad4ab8c0923c3126e02e2b3

    Description

      When I put an whitespace between 'qlineargradient' and opening brace, I get error 'Could not parse application stylesheet'.

      /* works */
      qlineargradient( /.../ )

      /* doesn't work */
      qlineargradient ( /* ...*/ )

      The same behavior I noticed with url(), etc.

      If there are braces inside the braces, the situation becomes more complicated.

      /* works */
      background-color: qlineargradient(spread:reflect, stop: 0 rgb(102, 102, 102) );

      /* doesn't work */
      background-color: qlineargradient( spread:reflect, stop: 0 rgb(102, 102, 102) );

      Now I can't put whitespace after the opening brace too.

      Is it the desired behavior or it's some kind of bug?

      SUGGESTION: Remove the dependancy on whitespaces.

      Attachments

        Issue Links

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

          Activity

            People

              chehrlic Christian Ehrlicher
              raykov Raycho Raykov
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes