Results 1 to 3 of 3

Thread: How to convert this java parameter

  1. #1
    Join Date
    Jul 2009
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Question How to convert this java parameter

    Hi,
    I'm still new with qt.
    Got a problem to convert this java parameter into qt

    String out;
    return (new String(new BigInteger(out, 16).toByteArray()));


    How to do this in qt ?
    thank you
    Last edited by razumi; 13th July 2009 at 07:03. Reason: updated contents

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to convert this java parameter

    Have a look at QString::number().

  3. #3
    Join Date
    Jul 2009
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to convert this java parameter

    Thank you.
    I've finally found the solution.

    QByteArray text = QByteArray::fromHex(out.toAscii());

Similar Threads

  1. How to declare SLOT as a parameter to member function?
    By QPlace in forum Qt Programming
    Replies: 2
    Last Post: 17th July 2018, 00:41
  2. Replies: 8
    Last Post: 16th July 2008, 14:05
  3. Error: BadMatch --> what's it?
    By mattia in forum Newbie
    Replies: 4
    Last Post: 9th June 2008, 12:20
  4. const function parameter problems
    By stevey in forum General Programming
    Replies: 3
    Last Post: 18th December 2006, 22:22
  5. Embedding Java in Qt
    By learnerplts in forum Qt Programming
    Replies: 2
    Last Post: 27th February 2006, 15:45

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.