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. How to use CSS with Qt Designer?
Forum Updated to NodeBB v4.3 + New Features

How to use CSS with Qt Designer?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 908 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.
  • F Offline
    F Offline
    Fairbz
    wrote on 28 Jul 2020, 11:44 last edited by
    #1

    Hi folks,

    I'm a new user of QT Designer, having just installed it yesterday. I've got some previous experience of GUI design from Visual Basic from years ago so I'm trying to rejog my memory.
    I came across a CSS style template for available for use that I'd like to incorporate to animate my PushButtons, however, when I paste the CSS code into my StyleSheet, all it does it causes a slight colour change when I hover over my PushButtons.

    The template should create a rainbow colour effect on the border of the button on hovering, so it's obviously not doing the correct thing.

    Is there any pointers as to how to properly incorporate CSS into StyleSheet? Is it as straightforward as copying and pasting?

    Thanks in advance, any help would be appreciated!

    I've attached a link to the animations I'm trying to use here:
    https://codepen.io/fencepencil/pen/xPxRGx

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 28 Jul 2020, 12:41 last edited by
      #2

      Qt does not use CSS. The "StyleSheet" property expects QSS code

      (Z(:^

      1 Reply Last reply
      3

      1/2

      28 Jul 2020, 11:44

      • 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