Results 1 to 2 of 2

Thread: about qt debugger and file write

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

    Default about qt debugger and file write

    1. i use qt creator, when in debug model , in the local variable watch area, can't get the value of the variable, in .pro file, i have added: CONFIG += debug

    2. is there any api like ReadFile() in win32, can read .exe or .bin file and store the result in QString, then convert to byte and write to serial port.

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: about qt debugger and file write

    Quote Originally Posted by guchangyuan View Post
    2. is there any api like ReadFile() in win32, can read .exe or .bin file and store the result in QString, then convert to byte and write to serial port.
    just use QFile to open the exe file and use readAll() which will return QBytearray which you can directly put to serial port directly.

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.