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

kde integration

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 1.1k 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.
  • J Offline
    J Offline
    Jim Gir
    wrote on last edited by
    #1

    Hi,
    QtQuickControls don't look native under kde. I found a deb package : [https://packages.debian.org/sid/amd64/qml-module-qtquick-controls-styles-breeze/filelist] for the kde standard "breeze" theme.
    I tried in the ccp code :

    QQuickStyle::addStylePath("/usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Styles/");
    QQuickStyle::setStyle("Breeze");
    

    but I can't make it work. any idea on how to to it (and more generally having a better KDE integration ?
    Thanks
    Jimmy

    1 Reply Last reply
    0
    • GrecKoG Offline
      GrecKoG Offline
      GrecKo
      Qt Champions 2018
      wrote on last edited by
      #2

      What does QQuickStyle::availableStyles() returns?

      1 Reply Last reply
      1
      • J Offline
        J Offline
        Jim Gir
        wrote on last edited by
        #3
        Default
        Base
        Breeze
        Desktop
        Flat
        Plasma
        Fusion
        Imagine
        Material
        Universal
        

        Hum seems ok, , and QQuiclStyle::name() returns Breeze.
        I thought seetings "Breeze" would change QQuickControls aspect but I think I'm wrong. Should I instead import Breeze in components in my qml files ? how to do it ?

        RokeJulianLockhartR 1 Reply Last reply
        0
        • J Jim Gir
          Default
          Base
          Breeze
          Desktop
          Flat
          Plasma
          Fusion
          Imagine
          Material
          Universal
          

          Hum seems ok, , and QQuiclStyle::name() returns Breeze.
          I thought seetings "Breeze" would change QQuickControls aspect but I think I'm wrong. Should I instead import Breeze in components in my qml files ? how to do it ?

          RokeJulianLockhartR Offline
          RokeJulianLockhartR Offline
          RokeJulianLockhart
          wrote last edited by RokeJulianLockhart
          #4

          I thought seetings "Breeze" would change QQuickControls aspect but I think I'm wrong.

          @Jim-Gir, yeah:

          print(
          	"Current QQuickStyle: ",
          	PySide6.QtQuickControls2.QQuickStyle.name()
          )
          PySide6.QtQuickControls2.QQuickStyle.setStyle("Breeze")
          print(
          	"Current QQuickStyle: ",
          	PySide6.QtQuickControls2.QQuickStyle.name()
          )
          

          ...returns "Fusion", then "Breeze", yet the controls appear identical regardless, despite them being quite different styles:

          Fusion Breeze

          Perhaps, ask at discuss.kde.org/t/1240, or a new thread on that instance?

          Environment
          Operating System: Fedora Linux 42
          KDE Plasma Version: 6.4.4
          KDE Frameworks Version: 6.17.0
          Qt Version: 6.9.1
          Kernel Version: 6.15.9-201.fc42.x86_64 (64-bit)
          Graphics Platform: Wayland
          

          When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

          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