Results 1 to 5 of 5

Thread: USB connected event using Qt in Linux OS

  1. #1
    Join Date
    Jul 2012
    Location
    India
    Posts
    33
    Thanks
    10
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question USB connected event using Qt in Linux OS

    I am developing an application that will interact with USB devices. I want to pop up a message when a USB device is connected to the system. How can I do this using Qt. Is there any other library available to fire an event when a usb device is connected to the system.

    I need an event or slot to when a new USB device connected to the system.

  2. #2
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: USB connected event using Qt in Linux OS

    Use libudev

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: USB connected event using Qt in Linux OS


  4. #4
    Join Date
    Jul 2012
    Location
    India
    Posts
    33
    Thanks
    10
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: USB connected event using Qt in Linux OS

    Quote Originally Posted by kuzulis View Post
    Use libudev
    Is there any sample cod available using this libudev

  5. #5
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: USB connected event using Qt in Linux OS

    E.g. from this link.

Similar Threads

  1. Replies: 3
    Last Post: 4th December 2012, 14:41
  2. How to handle Power Press event with QT Programming on Linux?
    By Kevin Hoang in forum General Programming
    Replies: 2
    Last Post: 1st April 2011, 08:36
  3. Simulating a touch event without a connected mobile phone
    By Rakula in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 5th October 2010, 06:59
  4. Is internet connected
    By bunjee in forum Qt Programming
    Replies: 2
    Last Post: 24th November 2009, 21:22
  5. Disconnect slot when another is being connected
    By holst in forum Qt Programming
    Replies: 4
    Last Post: 8th September 2009, 09:49

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.