Results 1 to 3 of 3

Thread: Help with QExtSerialPort libary[Qt4]

  1. #1
    Join Date
    Aug 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Help with QExtSerialPort libary[Qt4]

    Hello everyone!

    i'm actually stuck pretty much for the last hours(!) make my application work but i still had no luck...
    I've looked everywhere on the web and i'm very frustrated of this.
    Here's the problem:

    I need to develop a software that detects when a USB drive is plugged in the a computer, get it's friendly name & drive letter
    and copy some data from a folder which is pointed by the volume label. The main problem is that i tried all libraries i could find
    including qt's 2 other ones, but i had no luck. I found out that QExtSerialPort actually fit for my needs so i tried to build it
    and got the .dll & .a files. I compile my project, everything ok, but when i call the getPorts() function the QList is not filled.
    It's like i never called the function. I checked everything that could cause this but i cannot find it...
    So the main thing is: I call getPorts() and i get no ports at all, even though i have a USB drive connected to my computer along
    with a mouse.

    What could be the cause for a static function not working well?
    I beg for your help cause i'm really confused... :S
    Last edited by ZenT; 4th August 2012 at 17:26.

  2. #2
    Join Date
    Sep 2011
    Posts
    26
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Help with QExtSerialPort libary[Qt4]

    Hello,

    have you try to use the Example? http://code.google.com/p/qextserialp...rator/main.cpp

  3. #3
    Join Date
    Aug 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Cool Re: Help with QExtSerialPort libary[Qt4]

    hi, thanks for your reply.
    I try it but it returns empty...
    "List of ports: "


    EDIT: Managed to find a workaround: I used a libarary called QDeviceWatcher to get usb connect/disconnect/changed signals
    and the drive letter, then i pass the drive letter to WinAPI GetVolumeInformation() to get the drive label.



    please lock
    Last edited by ZenT; 4th August 2012 at 17:25.

Similar Threads

  1. Using qextserialport
    By udaybhaskar in forum Newbie
    Replies: 1
    Last Post: 6th April 2011, 14:46
  2. External libary in a separate thread: is this correct?
    By sylvaticus in forum Qt Programming
    Replies: 1
    Last Post: 3rd December 2009, 08:47
  3. New Qextserialport
    By pherthyl in forum Qt Programming
    Replies: 0
    Last Post: 20th August 2009, 01:09
  4. qextserialport libary compiling fails
    By sun in forum Qt Programming
    Replies: 2
    Last Post: 6th March 2009, 15:39
  5. QextSerialPort
    By Diph in forum Newbie
    Replies: 5
    Last Post: 13th September 2008, 19:18

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.