[Qt-interest] Status update on Network Disconnected
sarvesh saran
aquarian.thunder at gmail.com
Wed Jan 12 08:41:08 CET 2011
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110112/ff31723a/attachment.html
More information about the Qt-interest-old
mailing list