Bug 377779

Summary: Plasmoid could not import Qt.WebSockets 1.0
Product: [Unmaintained] plasma-mycroft Reporter: christian tacke <kde-bugs>
Component: PlasmoidAssignee: Aditya Mehra <Aix.m>
Status: RESOLVED WORKSFORME    
Severity: normal Keywords: investigated, triaged
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description christian tacke 2017-03-18 16:06:47 UTC
Hi,

when adding the plasmoid I get that Qt.Websocket could not be found. but I could fix it after installing qt5-qtwebsockets-devel.

I have Fedora an Qt5.7 running. 

From 7fa5ba4f2ade54e9e7fc367b9e05411ce10880d4 Mon Sep 17 00:00:00 2001
From: Christian Tacke <kde-bugs@ctacke.de>
Date: Sat, 18 Mar 2017 17:05:52 +0100
Subject: [PATCH] fix QtWebSockets include

---
 plasmoid/contents/ui/main.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plasmoid/contents/ui/main.qml b/plasmoid/contents/ui/main.qml
index 1e6798e..4172b4b 100644
--- a/plasmoid/contents/ui/main.qml
+++ b/plasmoid/contents/ui/main.qml
@@ -21,7 +21,7 @@ import QtQuick 2.0
 import QtQml.Models 2.2
 import QtQuick.Controls 2.0
 import QtQuick.Layouts 1.0
-import Qt.WebSockets 1.0
+import QtWebSockets 1.0
 import QtQuick.Controls.Styles 1.4
 import Qt.labs.settings 1.0
 import org.kde.plasma.core 2.0 as PlasmaCore
-- 
2.9.3
Comment 1 Aditya Mehra 2017-03-28 08:32:05 UTC
Works for me on up to date Fedora 25 x64. Your distribution and plasma version?
Comment 2 christian tacke 2017-04-01 11:05:27 UTC
(In reply to Aditya Mehra from comment #1)
> Works for me on up to date Fedora 25 x64. Your distribution and plasma
> version?

plasma-desktop 5.8.6-1.fc25

It also worked for me with qt5-qtwebsockets-devel installed. This was needed.
Comment 3 Andrew Crouthamel 2018-09-19 14:42:24 UTC
This bug has had its resolution changed, but accidentally has been left in NEEDSINFO status. I am thus closing this bug and setting the status as RESOLVED to reflect the resolution change.