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. Two connect function
QtWS25 Last Chance

Two connect function

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 252 Views
  • 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.
  • A Offline
    A Offline
    apoyo
    wrote on last edited by
    #1

    I want to use connect function from winsock library but i have problem becouse in my project there is QWidget library which i using and how to call connect function from winsock library?

    When i delete QWidget this code line how but the other dont work

    65bd7a97-bcef-4a19-8661-67128f1b416b-image.png

    JonBJ Kent-DorfmanK 2 Replies Last reply
    0
    • A apoyo

      I want to use connect function from winsock library but i have problem becouse in my project there is QWidget library which i using and how to call connect function from winsock library?

      When i delete QWidget this code line how but the other dont work

      65bd7a97-bcef-4a19-8661-67128f1b416b-image.png

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @apoyo
      From C++ you can call a global/free C function via ::. So use ::connect(...) for the C/Winsock function instead of the QObject::connect() C++ member method.

      1 Reply Last reply
      3
      • A apoyo

        I want to use connect function from winsock library but i have problem becouse in my project there is QWidget library which i using and how to call connect function from winsock library?

        When i delete QWidget this code line how but the other dont work

        65bd7a97-bcef-4a19-8661-67128f1b416b-image.png

        Kent-DorfmanK Offline
        Kent-DorfmanK Offline
        Kent-Dorfman
        wrote on last edited by
        #3

        @apoyo
        Maybe you have agood reason, but the larger question is why would you even use the winsock functions when Qt provides parallel socket handling functions? I mean, you asked on Qt desktop forum, so presumably you are doign a QtWidgets applications, right?

        1 Reply Last reply
        1

        • Login

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