Results 1 to 4 of 4

Thread: Conversion to QString from int or byte return wrong val...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2017
    Posts
    10
    Qt products
    Qt5
    Platforms
    Unix/X11
    Thanks
    3

    Default Re: Conversion to QString from int or byte return wrong val...

    yy thank you for sugalksdjal;ksjd;lkjasdf
    about setNum true, but in case I've compiled that func, i guess compiller worn about it, or not?
    any way i used char array not int... my example work fine,.
    Thanks for your help...

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

    Default Re: Conversion to QString from int or byte return wrong val...

    Quote Originally Posted by FalloutST View Post
    any way i used char array not int... my example work fine.
    char is a signed type with int range <-127,127> not <0,255>.

Similar Threads

  1. Casting Byte to QChar or QString
    By Habie in forum Qt Programming
    Replies: 1
    Last Post: 16th December 2015, 20:27
  2. Replies: 3
    Last Post: 19th April 2010, 14:16
  3. Replies: 4
    Last Post: 1st February 2010, 14:21
  4. Replies: 1
    Last Post: 17th January 2010, 07:36
  5. convert BYTE* to QString
    By tpf80 in forum Qt Programming
    Replies: 6
    Last Post: 8th April 2007, 10:29

Tags for this Thread

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.