Evgenii Legotckoi
Jan. 23, 2019, 3:27 p.m.

qsslint - Static parser for Qt stylesheets

Enter the wonderful world of instruments for which the announcement takes more time than the instrument itself.


qsslint is a small command line utility for checking the syntax of your Qt stylesheet (*.qss). This is very similar to the previous KDAB contribution, qmllint . It simply returns 0 if the stylesheet is valid, and nonzero otherwise.

Don't get me wrong, the author doesn't like CSS and doesn't want to encourage its use. But if you can't get away from it, then at least use a parser to catch errors at compile time, not during production.

The suggested way to use these tools in your daily life is not to use them manually. Instead, include them in your build system or CI and forget about them until the developer makes a typo.

Also, use the same advice for each source file type. Whether it's XML, JSON, or QML, there are many parsers available. And finally, for C++, the compiler already checks the syntax for you, but now you can also check Qt semantics with clazy or get extended C++ diagnostics with clang-tidy .

Recommended articles on this topic

By article asked0question(s)

1

Do you like it? Share on social networks!

Comments

Only authorized users can post comments.
Please, Log in or Sign up
  • Last comments
  • AK
    April 1, 2025, 11:41 a.m.
    Добрый день. В данный момент работаю над проектом, где необходимо выводить звук из программы в определенное аудиоустройство (колонки, наушники, виртуальный кабель и т.д). Пишу на Qt5.12.12 поско…
  • Evgenii Legotckoi
    March 9, 2025, 9:02 p.m.
    К сожалению, я этого подсказать не могу, поскольку у меня нет необходимости в обходе блокировок и т.д. Поэтому я и не задавался решением этой проблемы. Ну выглядит так, что вам действитель…
  • VP
    March 9, 2025, 4:14 p.m.
    Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
  • ИМ
    Nov. 22, 2024, 9:51 p.m.
    Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
  • Evgenii Legotckoi
    Oct. 31, 2024, 11:37 p.m.
    Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup