Results 1 to 20 of 20

Thread: Converting to negative int - bug

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #14
    Join Date
    Oct 2009
    Location
    South Africa
    Posts
    94
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Converting to negative int - bug

    Thanks for advice, but at the end of the day, I don't know how!
    The original issue came up when I was trying to do a MODBUS application, and I got it to work back then by doing what I'm doing now.

    Like so...?
    Qt Code:
    1. m_DataEccentricity[0] = block[21];
    2. m_DataEccentricity[1] = block[22];
    3. m_DataEccentricity[2] = block[23];
    4. m_DataEccentricity[3] = block[24];
    5. box.setText(m_DataEccentricity);
    6. box.exec();
    To copy to clipboard, switch view to plain text mode 

    The camera (where we are reading inputs from) has gone down, so no way to test it right now.

    Testing
    Qt Code:
    1. QByteArray ba("\xBD\xC6\xD6\x04");
    2. box.setText(ba);
    3. box.exec();
    To copy to clipboard, switch view to plain text mode 
    doesn't work though.
    Last edited by ShamusVW; 22nd September 2010 at 11:10. Reason: Addition

Similar Threads

  1. QFontMetrics::leading() returns negative value.
    By JantarManter in forum Qt Programming
    Replies: 0
    Last Post: 19th May 2010, 14:45
  2. Replies: 1
    Last Post: 6th May 2010, 11:36
  3. How to zoom in negative X and Y axis ?
    By biplab777 in forum Qwt
    Replies: 0
    Last Post: 9th June 2009, 10:55
  4. color image to negative
    By sm in forum Newbie
    Replies: 1
    Last Post: 29th January 2008, 15:25
  5. negative images
    By tommy in forum Qt Programming
    Replies: 3
    Last Post: 22nd January 2008, 10:41

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.