Results 1 to 2 of 2

Thread: Add Delay.

  1. #1
    Join Date
    Mar 2011
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Symbian S60

    Exclamation Add Delay.

    Hi, I need delay functions that specifically for this type of codes.
    for example:

    picture.save(".........../mypicture.png");
    ------
    delay code
    ------
    QImage* editpicture = new QImage(".........../mypicture.png");
    ....some codes to edit picture.....
    editpicture.save(".........../mypicture.png");

    while using the emulator, this code doesnt have any problem, but while in the phone, it needs time to save the picture first before getting the same picture. But what happens is that:
    after the saving line, the phone is loading to save it but the next line which is retrieving the picture is already working.

    Any way to do delays that would not interfere with the saving and retrieving??

    Thx in advance....

  2. #2
    Join Date
    Mar 2011
    Posts
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Symbian S60

    Default Re: Add Delay.

    You could try QTimer::singleShot to call a slot delayed.
    But why do you want to save an image and load the same again?
    Can't you use picture or create a copy of the instance?
    develboard.blogspot.com - Private German Blog and Wiki about Qt and Linux related Stuff

  3. The following user says thank you to ghal maraz for this useful post:

    Johncdy (17th March 2011)

Similar Threads

  1. Delay using sound at Qt
    By ardisaz in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 15th December 2010, 17:48
  2. How to add timer delay
    By qtUse in forum Newbie
    Replies: 1
    Last Post: 12th October 2010, 19:09
  3. Delay initializing?
    By MorrisLiang in forum Newbie
    Replies: 4
    Last Post: 23rd August 2010, 16:37
  4. Delay DLL loading ?
    By black_coder in forum Qt Programming
    Replies: 1
    Last Post: 2nd December 2009, 01:00
  5. delay in qapplication
    By mandal in forum Qt Programming
    Replies: 5
    Last Post: 17th November 2006, 14:31

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.