Results 1 to 13 of 13

Thread: QextSerialPort and modem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QextSerialPort and modem

    Quote Originally Posted by kaszewczyk View Post
    This PortInformations look like this:
    Qt Code:
    1. class PortInformations{
    2. public:
    3. QString portName;
    4. QString nrOfDataBits:
    5. //etc...
    6. }
    To copy to clipboard, switch view to plain text mode 
    This could be a problem because the modem is on COM40 but i dont know how to add "\\.\" to QString cus i cand doing by operator + ?
    Qt Code:
    1. QString CreatePortName( int portNumber )
    2. {
    3. return QString("\\\\.\\%1").arg(portNumber);
    4. }
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to Lesiok for this useful post:


Similar Threads

  1. QExtSerialPort with AT commands
    By Althor in forum Qt Programming
    Replies: 2
    Last Post: 6th September 2011, 18:15
  2. Problem in reading port using QextSerialPort
    By cutie.monkey in forum Qt Programming
    Replies: 6
    Last Post: 2nd July 2009, 02:07
  3. QExtSerialport question
    By bnilsson in forum Qt Programming
    Replies: 0
    Last Post: 6th June 2009, 22:29
  4. Problem with QExtSerialPort and a usb modem
    By Althor in forum Qt Programming
    Replies: 4
    Last Post: 31st October 2008, 12:02
  5. accessing the GSM modem using serialport in windows OS
    By jjbabu in forum Qt Programming
    Replies: 11
    Last Post: 31st December 2007, 11:38

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
  •  
Qt is a trademark of The Qt Company.