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

Strange behavior while parsing Qt stylesheets

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: Not Evaluated 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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes