Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Could not parse stylesheet of widget
Forum Updated to NodeBB v4.3 + New Features

[Solved] Could not parse stylesheet of widget

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 21.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    clepto
    wrote on last edited by
    #1

    Hello,

    i get the error in the title when trying to customize a QTableWidget
    the css is this
    @QTableWidget {
    background-image: url(/home/chris/.config/yamp/themes/dark/images/playlist_background.png);
    }@

    i tried with background: black; in case that the problem was the image but i get the same error...

    any idea?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Blizzard
      wrote on last edited by
      #2

      A good method for checking which syntax the stylesheet will accept for a particular widget is trying to add a stylesheet to that widget via Qt designer - you will quickly realize what is and is not allowed. In this case, you can check some proper syntax examples for the QTableWidget "here":http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qtableview.

      Software Engineer | Aerospace & Defence

      1 Reply Last reply
      0
      • C Offline
        C Offline
        clepto
        wrote on last edited by
        #3

        i find out later that the syntax wasn't accepted and i found out another post about qtablewidget but i doesn't do anything, i can't find it right now

        1 Reply Last reply
        0
        • M.O.HM Offline
          M.O.HM Offline
          M.O.H
          wrote on last edited by
          #4

          The URL for local file starts with file:// .

          background-image: url("file:://home/chris/.config/yamp/themes/dark/images/playlist_background.png");
          
          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved