Results 1 to 11 of 11

Thread: How to convert QString to LPCSTR??

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default How to convert QString to LPCSTR??

    Qt Code:
    1. if (Status == DEVICESTATUS_DOWNLOAD_PROGRESS) {
    2. QString out;
    3. out.sprintf(("Downloading.... %d Sectors"), (unsigned int) Param);
    4. pThis->HlpSetStatus((LPCSTR)out.utf16());
    To copy to clipboard, switch view to plain text mode 

    Am using this code but the status just displays only "D".. Please help me to resolve this issue.
    Last edited by Gokulnathvc; 25th March 2011 at 07:00.

Similar Threads

  1. Converting a QString to a LPCTSTR?
    By dobedidoo in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2009, 14:27
  2. convert QString to int
    By mattia in forum Newbie
    Replies: 2
    Last Post: 4th January 2008, 09:10
  3. how to convert int to QString?
    By phillip_Qt in forum Newbie
    Replies: 2
    Last Post: 5th October 2007, 08:07
  4. How to convert Int to QString in QT4?
    By drake1983 in forum Newbie
    Replies: 2
    Last Post: 11th March 2007, 06:58
  5. How to convert from QString to quint16 ?
    By probine in forum Qt Programming
    Replies: 5
    Last Post: 31st March 2006, 09:00

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.