Results 1 to 2 of 2

Thread: Qextserial and writeblock

  1. #1
    Join Date
    Apr 2011
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Qextserial and writeblock

    Hi,
    I am converting an app from qt3 -->qt4. The code uses Qextserialport and I think I now managed to do all changes except from one:

    Qt Code:
    1. void pump::sendPump( const char *out)
    2. {
    3. if(port.open()) {
    4. port.writeBlock(out,strlen(out));
    5. port.flush();
    6. port.flush();
    7. port.close();
    8. }
    9. }
    To copy to clipboard, switch view to plain text mode 

    I recieve an error for the WriteBlock. Has this been changed in new version of Qextserial and can anyone help me how it should be written
    Many thanks in advance!
    Thomas

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qextserial and writeblock

    do you use the new QextSerialPort which linkgs against Qt4?
    I recieve an error for the WriteBlock.
    Which error?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. QEXTSERIAL on MAC OS X
    By spirtoulis in forum Qt Programming
    Replies: 0
    Last Post: 5th October 2010, 14:08
  2. Getting qextserial to work
    By eva2002 in forum Qt Programming
    Replies: 4
    Last Post: 18th January 2010, 03:41
  3. problem while compiling qextserial port
    By jjbabu in forum Qt Programming
    Replies: 1
    Last Post: 15th September 2007, 13:01
  4. QFile::writeBlock: File not open
    By safknw in forum Qt Tools
    Replies: 1
    Last Post: 16th September 2006, 13:21

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.