Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. CWD of the stylesheet file
Forum Updated to NodeBB v4.3 + New Features

CWD of the stylesheet file

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 1.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.
  • W Offline
    W Offline
    wamo
    wrote on last edited by
    #1

    What is the current working directory of the stylesheet file?

    i create a QTabWidget and set following style

    @QTabBar::close-button
    {
    image: url(closetab.png);
    subcontrol-position: right;
    background: darkgray;
    }@

    the gray box does appear but i cannot see the closebutton. I tried the same path as the stylesheet and the application bin dir.

    If i set an absolute path like c:\images\closetab.png and copy the file there it works fine.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      RazrFalcon
      wrote on last edited by
      #2

      [quote author="wamo" date="1319722676"]What is the current working directory of the stylesheet file?[/quote]The directory from which you start your app.

      You can create folder with name "icons" in folder with your application executable. Then: image: url(icons/closetab.png);

      Or just use "qrc":http://doc.qt.nokia.com/latest/resources.html

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wamo
        wrote on last edited by
        #3

        [quote author="RazrFalcon" date="1319723510"][quote author="wamo" date="1319722676"]What is the current working directory of the stylesheet file?[/quote]The directory from which you start your app.

        You can create folder with name "icons" in folder with your application executable. Then: image: url(icons/closetab.png);

        Or just use "qrc":http://doc.qt.nokia.com/latest/resources.html[/quote]

        I found this solution. My ide has a different default CWD path. It was home instead the appdir.
        Thank you

        1 Reply Last reply
        0

        • Login

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