hyprwm / hyprpolkitagent

A polkit authentication agent written in QT/QML
https://wiki.hyprland.org/Hypr-Ecosystem/hyprpolkitagent/
BSD 3-Clause "New" or "Revised" License
79 stars 2 forks source link

ERROR: QQuickStyle::setStyle() must be called before loading QML that imports Qt Quick Controls 2 #10

Open youegraillot opened 4 days ago

youegraillot commented 4 days ago

Looks like a style issue :

image

nov. 18 17:55:36 y-desktop hyprpolkitagent[2241]: Listener adapter polkit_qt_listener_initiate_authentication
nov. 18 17:55:36 y-desktop hyprpolkitagent[2241]: GSimpleAsyncResult: 0x4d24000
nov. 18 17:55:36 y-desktop hyprpolkitagent[2241]: polkit_qt_listener_initiate_authentication callback for  0x473cea0
nov. 18 17:55:36 y-desktop hyprpolkitagent[2241]: ERROR: QQuickStyle::setStyle() must be called before loading QML that imports Qt Quick Controls 2.
nov. 18 17:55:37 y-desktop hyprpolkitagent[2241]: qrc:/qt/qml/hpa/qml/main.qml:97:17: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<a>
nov. 18 17:55:37 y-desktop hyprpolkitagent[2241]: qrc:/qt/qml/hpa/qml/main.qml:72:17: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<a>
nov. 18 17:55:37 y-desktop hyprpolkitagent[2241]: REQUEST
nov. 18 17:56:02 y-desktop hyprpolkitagent[2241]: COMPLETED
nov. 18 17:56:02 y-desktop hyprpolkitagent[2241]: Listener adapter polkit_qt_listener_initiate_authentication_finish
nov. 18 17:56:02 y-desktop hyprpolkitagent[2241]: polkit_qt_listener_initiate_authentication_finish callback for  0x473cea0

I'm on 0.1.1 in hyprland

vaxerski commented 3 days ago

@outfoxxed any ideas? works on my end. Do you have qqc2-desktop-style installed?

youegraillot commented 3 days ago

Also I'm on nixos I added qqc2-desktop-style, now I'm getting this : image

Theme looks correctly loaded, but layout is still cropped (I cannot resize the window)

nov. 19 14:56:34 y-desktop hyprpolkitagent[175255]: Adding new listener  PolkitQt1::Agent::Listener(0x1a3f44b0) for  0x1a3f4ea0
nov. 19 14:56:36 y-desktop hyprpolkitagent[175255]: Listener adapter polkit_qt_listener_initiate_authentication
nov. 19 14:56:36 y-desktop hyprpolkitagent[175255]: GSimpleAsyncResult: 0x1a44c080
nov. 19 14:56:36 y-desktop hyprpolkitagent[175255]: polkit_qt_listener_initiate_authentication callback for  0x1a3f4ea0
nov. 19 14:56:36 y-desktop hyprpolkitagent[175255]: qrc:/qt/qml/hpa/qml/main.qml:97:17: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(>
nov. 19 14:56:36 y-desktop hyprpolkitagent[175255]: qrc:/qt/qml/hpa/qml/main.qml:72:17: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(>
nov. 19 14:56:36 y-desktop hyprpolkitagent[175255]: REQUEST
nov. 19 14:56:37 y-desktop hyprpolkitagent[175255]: COMPLETED
nov. 19 14:56:37 y-desktop hyprpolkitagent[175255]: Listener adapter polkit_qt_listener_initiate_authentication_finish
nov. 19 14:56:37 y-desktop hyprpolkitagent[175255]: polkit_qt_listener_initiate_authentication_finish callback for  0x1a3f4ea0
vaxerski commented 3 days ago

can you try pulling git and not 0.1.1?