Results 1 to 4 of 4

Thread: Qt- Multi platform equivalent for the following functions?

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

    Default Qt- Multi platform equivalent for the following functions?

    Qt- Multi platform equivalent for the following functions?
    1) Sleep(2000).
    2) HeapFree()
    3) HeapAlloc()
    4) GetProcessHeap()

  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: Qt- Multi platform equivalent for the following functions?

    1) Use QTimer for 2 second delay (or maybe POSIX sleep(), usleep(), nanosleep() or the equivalent from Boost::Thread).
    2) C++ operator delete or delete[]
    3) C++ operator new or new[] followed by initialisation if required
    4) Unnecessary as far as I can see
    Last edited by ChrisW67; 16th December 2011 at 07:55.

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

    Default Re: Qt- Multi platform equivalent for the following functions?

    HeapFree(GetProcessHeap(),0,buffer).

    How to fix this???

  4. #4
    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: Qt- Multi platform equivalent for the following functions?

    See points 2 and 3.
    Qt Code:
    1. char *buffer = new char[5000];
    2. ...
    3. delete[] buffer;
    To copy to clipboard, switch view to plain text mode 

  5. The following user says thank you to ChrisW67 for this useful post:

    Gokulnathvc (16th December 2011)

Similar Threads

  1. Replies: 1
    Last Post: 11th November 2010, 00:31
  2. Replies: 3
    Last Post: 13th October 2009, 15:31
  3. Newbie question regarding multi platform development
    By bronkopavel in forum Installation and Deployment
    Replies: 2
    Last Post: 15th September 2008, 10:08
  4. Replies: 6
    Last Post: 25th February 2008, 21:18
  5. equivalent
    By deepa.selvaraj in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 18:33

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.