Bug 377779 - Plasmoid could not import Qt.WebSockets 1.0
Summary: Plasmoid could not import Qt.WebSockets 1.0
Status: RESOLVED WORKSFORME
Alias: None
Product: plasma-mycroft
Classification: Unmaintained
Component: Plasmoid (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Aditya Mehra
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2017-03-18 16:06 UTC by christian tacke
Modified: 2018-09-19 14:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.