Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. WebSocket in QtQuick 1.1
Forum Updated to NodeBB v4.3 + New Features

WebSocket in QtQuick 1.1

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 3 Posters 730 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mark81
    wrote on last edited by
    #1

    Is there a way to use WebSockets in QML only with QtQuick 1.1?
    As far as I understand there's no QtWebSockets, but I tried with pure JavaScript and it fails too:

    websocket = new WebSocket("ws://echo.websocket.org/");
    

    TypeError: Type error

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you check the QtWebSocket examples ?
      I'd start there and replace the QtQuick 2 stuff with QtQuick 1.

      Out of curiosity, why are you tied to QtQuick 1.1 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mark81
        wrote on last edited by
        #3

        Yes, but here the doc states:

        Import Statement: import QtWebSockets 1.1
        Since: Qt 5.3

        I'm working with this product that comes with an sd-card with a pre-installed Yocto custom environment with nothing else than a loader for QML files. And it's based upon Qt4.7.1 and QtQuick 1.1. The manufacturer doesn't offer any support about customizing anything.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Qt 4.7.1 ? That's the kind of details that you should have put in your first message.

          Since it's a yocto system you should be able to re-build the image with a more recent version of Qt or at least ask them whether they have that in the pipe.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            Qt 4.7.1 ? That's the kind of details that you should have put in your first message.

            Since it's a yocto system you should be able to re-build the image with a more recent version of Qt or at least ask them whether they have that in the pipe.

            M Offline
            M Offline
            Mark81
            wrote on last edited by
            #5

            @SGaist Sorry, I thought QtQuick 1.1 was enough! Unfortunately they just say "you're on your own" about customizing their product and I have no time to learn and re-build the whole image. It's planned, but not now. At the moment I need to find a solution with the very old stuff.

            1 Reply Last reply
            0
            • dheerendraD Offline
              dheerendraD Offline
              dheerendra
              Qt Champions 2022
              wrote on last edited by
              #6

              You can add the web socket functionality on your own for your project. It is doable.

              Dheerendra
              @Community Service
              Certified Qt Specialist
              http://www.pthinks.com

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved