Results 1 to 8 of 8

Thread: DWORD to QSTRING

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2010
    Posts
    32
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2

    Default DWORD to QSTRING

    Hello,

    Has anyone an idea on how to convert a DWORD to a QSTRING to display in a lineEdit?

    Thanks

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: DWORD to QSTRING

    A DWORD is a typedef for unsigned long in Microsoft headers. Look at the QString::arg() or the QString::number() variants. How do you want to display it?

Similar Threads

  1. #include <mmsystem.h> and DWORD ?
    By nthung in forum Qt Programming
    Replies: 3
    Last Post: 28th May 2010, 13:46
  2. With QString create a QString&
    By avis_phoenix in forum Newbie
    Replies: 1
    Last Post: 21st April 2010, 22:05
  3. Replies: 4
    Last Post: 1st February 2010, 14:21
  4. Replies: 4
    Last Post: 31st January 2008, 20:44
  5. how to copy part of QString to anothe QString
    By nass in forum Qt Programming
    Replies: 1
    Last Post: 26th March 2007, 19:05

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.