Results 1 to 5 of 5

Thread: qextserialport taking value 0 as null ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Oct 2007
    Location
    Grenoble, France
    Posts
    80
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qextserialport taking value 0 as null ?

    Instead of this
    Qt Code:
    1. QByteArray msg = buff;
    To copy to clipboard, switch view to plain text mode 
    try
    Qt Code:
    1. QByteArray msg = QByteArray::fromRawData(buff,numBytes);
    To copy to clipboard, switch view to plain text mode 
    or
    Qt Code:
    1. QByteArray msg = port->read(numBytes);
    To copy to clipboard, switch view to plain text mode 

    Sorry, i think i din't read your post carefully last time
    Last edited by calhal; 11th August 2008 at 07:49. Reason: Forgot something
    You have to run a level 3 diagnostic.

    Ashes to ashes, Qt to Qt ( wysota )

Similar Threads

  1. Problem at time compilation in traslation of language
    By thomasjoy in forum Qt Programming
    Replies: 3
    Last Post: 22nd May 2007, 14:18

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.