Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Websockets support[solved]
Forum Updated to NodeBB v4.3 + New Features

Websockets support[solved]

Scheduled Pinned Locked Moved General and Desktop
35 Posts 2 Posters 11.4k 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.
  • Z Offline
    Z Offline
    Zondar
    wrote on last edited by
    #26

    I am getting http://ctrlv.cz/Xe5c

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

      Looks like you don't have perl installed on your system or is it Qt Creator that doesn't find it ?

      If you have perl, what version is it ?

      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
      • Z Offline
        Z Offline
        Zondar
        wrote on last edited by
        #28

        Perl 5.20.2 for MSWin 32bit. I have installed Active Perl.

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

          Do you have more details about the perl error ?

          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
          • Z Offline
            Z Offline
            Zondar
            wrote on last edited by
            #30

            Use of uninitialized value $val in string eq at C:\Qt5\5.4\winphone_arm\bin\sync
            qt.pl line 727.
            Use of uninitialized value $val in string eq at C:\Qt5\5.4\winphone_arm\bin\sync
            qt.pl line 729.
            Use of uninitialized value $val in int at C:\Qt5\5.4\winphone_arm\bin\syncqt.pl
            line 732.
            No such module: QtWebsocket at C:\Qt5\5.4\winphone_arm\bin\syncqt.pl line 817.

            It might could be caused by, that QtWebsockets are not listed in some variable, which contains supported modules.

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              Zondar
              wrote on last edited by Zondar
              #31

              I solved it by updating Qt to 5.5 beta.
              EDIT: I build app successfully, but app will stack on loading screen if I add Websockets to .pro file.
              EDIT: EDIT: Seems that Websocket are not implemented yet for Qt Quick, so I solved it by rewriting component in C++ and adding internet permission to appmanifest.xml

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

                Are you sure it's not just related to the permission missing ?

                There's a QtQuick example here

                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
                • Z Offline
                  Z Offline
                  Zondar
                  wrote on last edited by
                  #33

                  Qt Creator seems it know WebsocketServer, but Websocket not. But I managed to get it working by rewriting component into C++.

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

                    Did you check if the example is working for you ?

                    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
                    • Z Offline
                      Z Offline
                      Zondar
                      wrote on last edited by
                      #35

                      It did not worked on 5.5 Windows Phone, but it worked on 5.4 (tested on Desktop and Android and iOS)

                      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