[Qt-interest] Status update on Network Disconnected
sudhish kapoor
kapoorsudhish at gmail.com
Wed Jan 12 09:16:11 CET 2011
Thanks for the help, i have implemented this using QNetworkInterface and
polling based mechanism, which works as expected but my problem is, i dont
want it to poll and i want an event generated and intimated to Ui that the
network is disconnected which is not the case. :(
Is there any event which lets me know about this, so that i need not to poll
to get hte satatus update??
On Wed, Jan 12, 2011 at 1:11 PM, sarvesh saran
<aquarian.thunder at gmail.com>wrote:
> Hi,
>
> If mobility API is not an alternative, then the best QT way is to connect
> to a well known host and see if the connection succeeds or times out.
>
> or you could try PING + QProcess if your platform supports it and you have
> the privileges.
>
> thanks,
> Sarvesh
>
>
> On Wed, Jan 12, 2011 at 12:49 PM, Mandeep Sandhu <
> mandeepsandhu.chd at gmail.com> wrote:
>
>> On Wed, Jan 12, 2011 at 11:19 AM, sudhish kapoor
>> <kapoorsudhish at gmail.com> wrote:
>> > What i want to know is when the Network cable is unplugged, so that the
>> > appropriate actions can be taken in UI, I am using Qt4.6?
>>
>> I don't think QT provides a native (as in a native QT classes etc) to
>> get system notifications. You will have to rely on some external
>> program (HAL/NM/DBUS etc) to get such info and update your GUI.
>>
>> HTH,
>> -mandeep
>>
>> >
>> >
>> > --
>> > Regards,
>> > Sudhish Kapoor.
>> >
>> > _______________________________________________
>> > Qt-interest mailing list
>> > Qt-interest at qt.nokia.com
>> > http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>> >
>> >
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at qt.nokia.com
>> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
--
Regards,
Sudhish Kapoor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110112/47b475cc/attachment.html
More information about the Qt-interest-old
mailing list