I saw that one, but the description didnt match what i needed, it seemed it was for something else.
How can this be useful if it does not bind the port until after the connection is established?You can call this function in a subclass of QAbstractSocket to change the return value of the localPort() function after a connection has been established. This feature is commonly used by proxy connections for virtual connection settings.
Note that this function does not bind the local port of the socket prior to a connection (e.g., QUdpSocket::bind()).
Bookmarks