Results 1 to 4 of 4

Thread: writing the variable value on port.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: writing the variable value on port.

    You are writing "i" string to the port, not the variable. If you want to write variable's value, you have to first convert it to a byte array.

    You need something like:
    Qt Code:
    1. port->write( QString::number( i ).toAscii() );
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Sep 2007
    Posts
    83
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 3 Times in 3 Posts

    Default Re: writing the variable value on port.

    thanx for ur sharp response.i did well with ur suggession.thank u.bye

Similar Threads

  1. Replies: 6
    Last Post: 18th April 2007, 15:04

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.