Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt desktop components with user Style
Forum Updated to NodeBB v4.3 + New Features

Qt desktop components with user Style

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 4 Posters 2.4k 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.
  • Q Offline
    Q Offline
    qVLAD
    wrote on last edited by
    #1

    Maybe someone faced with a similar problem and could help me. I want to use "qt desktop components" but styles of some elements i want change from system to custom but save all the functionality. How to do it, for example, to scroll area element

    1 Reply Last reply
    0
    • M Offline
      M Offline
      markg85
      wrote on last edited by
      #2

      The thing with desktop components is that it uses the current users desktop theme. So if you change your desktop theme the components will have that theme.

      However, that might not be possible for you to do.. (making desktop themes isn't easy). The fastest way for you to customize a certain desktop component is probably by just looking at the QML file of the component you want to change, make a copy of it with some custom name and start editing the QML to your liking.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qVLAD
        wrote on last edited by
        #3

        Thanks for the reply, sadly that there is no more convenient way.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          steno
          wrote on last edited by
          #4

          It is now possible to style certian components. All you have to do is import QtQuick.Controls.Styles 1.0

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Jens
            wrote on last edited by
            #5

            Yes it is certainly possible to style a scroll area using Qt 5.1 RC.
            This was done using custom styling: http://blog.qt.digia.com/wp-content/uploads/2013/06/Screen-Shot-2013-06-21-at-2.51.45-PM3.png
            As steno suggests, just set a custom ScrollViewStyle (or TableViewStyle) on the control and modify it to your liking.

            Not everything has a custom style in the first release however, but we are planning on adding more public style classes soon.

            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