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. Qt styling like Delphi VLC
Forum Update on Monday, May 27th 2025

Qt styling like Delphi VLC

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.8k 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.
  • Y Offline
    Y Offline
    yodusow bardon
    wrote on 7 Dec 2015, 17:14 last edited by
    #1

    I know that Qt has support for CSS and it has the QML, but I'm wondering, how can I style the gui like Delphi does with the VLC?

    I mean, which one is faster? I tried to use the QML but I'm having a few problems with the window glitching, I don't know the reason, but maybe it's because of the OpenGL. I tried to change the configuration but it seems to be really slow.
    I'm wondering, which one is faster? Qt styling using QPallete, using CSS or use QML with styling?

    I need the best performance x beauty possible.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 7 Dec 2015, 18:15 last edited by
      #2

      Hi
      For desktop widgets, StyleSheets offer fast and good styling.
      http://www.informit.com/articles/article.aspx?p=1405556
      Its can be change to great extend
      http://thesmithfam.org/blog/2009/10/13/cool-qprogressbar-stylesheet/
      its even possible to create a custom style.
      http://doc.qt.io/qt-5/qtwidgets-widgets-styles-example.html

      Y 1 Reply Last reply 7 Dec 2015, 20:56
      0
      • M mrjj
        7 Dec 2015, 18:15

        Hi
        For desktop widgets, StyleSheets offer fast and good styling.
        http://www.informit.com/articles/article.aspx?p=1405556
        Its can be change to great extend
        http://thesmithfam.org/blog/2009/10/13/cool-qprogressbar-stylesheet/
        its even possible to create a custom style.
        http://doc.qt.io/qt-5/qtwidgets-widgets-styles-example.html

        Y Offline
        Y Offline
        yodusow bardon
        wrote on 7 Dec 2015, 20:56 last edited by
        #3

        @mrjj Thank you, I think that I'm going to use stylesheets as you said.
        Before I set as solved, let me ask you something, is it possible to do what we can do with stylesheets using QPalette? I mean, does QPalette have the same power of styling as stylesheets? Because QPallete is coding so I think that it might be faster than stylesheets as it will be parsed first in order to work, right?

        M 1 Reply Last reply 7 Dec 2015, 20:59
        0
        • Y yodusow bardon
          7 Dec 2015, 20:56

          @mrjj Thank you, I think that I'm going to use stylesheets as you said.
          Before I set as solved, let me ask you something, is it possible to do what we can do with stylesheets using QPalette? I mean, does QPalette have the same power of styling as stylesheets? Because QPallete is coding so I think that it might be faster than stylesheets as it will be parsed first in order to work, right?

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 7 Dec 2015, 20:59 last edited by mrjj 12 Jul 2015, 21:00
          #4

          @yodusow-bardon said:

          QPalette

          Is as far as I know QPalette is only able to change colors of elements and some brushes.
          Whereas StyleSheet can really change the look of the widget.

          Yeah stylesheet will be parsed once. but its fast.

          1 Reply Last reply
          0

          1/4

          7 Dec 2015, 17:14

          • Login

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