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. Stylesheets not working for autostart

Stylesheets not working for autostart

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 228 Views 2 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.
  • Z Offline
    Z Offline
    zspinelli
    wrote on last edited by
    #1

    I've got a Qt program running on linux (raspbian on a raspberry pi) that's supposed to start automatically after the user is logged in. To try accomplishing this I added a line in the account's .profile however when the machine starts and the account logs in, the program starts but doesn't apply the stylesheet. Conversely, the stylesheet applies correctly when the program is launched from the terminal.
    Any ideas what causes this?

    sierdzioS 1 Reply Last reply
    0
    • Z zspinelli

      I've got a Qt program running on linux (raspbian on a raspberry pi) that's supposed to start automatically after the user is logged in. To try accomplishing this I added a line in the account's .profile however when the machine starts and the account logs in, the program starts but doesn't apply the stylesheet. Conversely, the stylesheet applies correctly when the program is launched from the terminal.
      Any ideas what causes this?

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @zspinelli Do you use relative path to load the stylesheet? If yes, that's probably the reason.

      (Z(:^

      Z 1 Reply Last reply
      3
      • sierdzioS sierdzio

        @zspinelli Do you use relative path to load the stylesheet? If yes, that's probably the reason.

        Z Offline
        Z Offline
        zspinelli
        wrote on last edited by
        #3

        @sierdzio

        That was exactly the reason... I'm disappointed that I overlooked it.
        Thank you for your help.

        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