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. How to make qmake compile SASS into CSS using qtsass?
Forum Update on Monday, May 27th 2025

How to make qmake compile SASS into CSS using qtsass?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 276 Views
  • 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.
  • A Offline
    A Offline
    Agron
    wrote on 26 Jan 2024, 16:42 last edited by
    #1

    Hi,

    I have a sass file which needs to be compiled into CSS.
    I have appstyles.sass and I need to convert it to Qt style CSS appstyles.css and have it deployed to the the build folder, installed or sent to the remote server as part of deployment.

    Right now I am using a postbuild command like the bellow, but that's not the right way.

    qtsass -o appstyles.css appstyles.sass
    

    The right way should be something like in the makefile

    appstyle.css: appstyle.sass
    qtsass -o appstyles.css appstyles.sass
    

    But, how do I do that in the .pro file instead?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Jan 2024, 20:01 last edited by
      #2

      Hi,

      Take a look at the Adding compilers topic in qmake's documentation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      26 Jan 2024, 16:42

      • Login

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