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

Wrong import for websocket in Qt-5.5 Beta

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical 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

      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.

        For Gerrit Dashboard: QTBUG-46205
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes