Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-46205

Wrong import for websocket in Qt-5.5 Beta

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.5.0 RC
    • 5.5.0 Beta
    • WebSockets
    • None
    • Linux kernel 4.0, gcc 4.8.4, Qt-5.5 Beta, self compiled from source.
    • bd1f5e1651c7cdaa712feebe2573dd158c87bb07

    Description

      Using WebSocket server example: http://doc.qt.io/qt-5/qtwebsockets-qmlwebsocketserver-example.html

      Works with Qt-5.4.1 Release, but does NOT work with Qt-5.5 Beta.
      Error statement is:
      "QQmlApplicationEngine failed to load component
      qrc:/main.qml:3 module "Qt.WebSockets" plugin "../../QtWebSockets/declarative_qmlwebsockets" not found"

      Workaround: Change the import statement from:
      "import Qt.WebSockets 1.0" to
      "import QtWebSockets 1.0"
      But after that Qt-5.4.1 does NOT work.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              liaqi Liang Qi
              vivelu Ville Lukka
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes