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 Updated to NodeBB v4.3 + New Features

Qt styling like Delphi VLC

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.9k 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.
  • Y Offline
    Y Offline
    yodusow bardon
    wrote on 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
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on 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
      0
      • mrjjM mrjj

        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 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?

        mrjjM 1 Reply Last reply
        0
        • Y yodusow bardon

          @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?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #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

          • Login

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