×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    90

    Problem executing my app outside the QtCreator (QTimer)

    Hello, I'll try to explain my weird problem.

    In my app I have some (around 70) QGraphicPixmapItems (actually a subclass) in a QGraphicsScene. Some of the pixmap can move folowing a implemented pattern, and they start their movement when a variable QTimer finishes. One QTimer per object (being maximun number of six at the same time)

    Well: everything works fine, perfectly if I have the mobile plugged to the QtCreator. BUT if I'm executing the app directly from the phone, unplugged, it doesn't work well. If I try more times (not restarting the app, there is a sort of restart button) it goes well.

    Sometimes a QTimer seems "broken", other starts later than expected...

    So, my question is. Which type of problem can occur only when the device is unplugged? something about six QTimers being executed at the same time?

    Thanks!

  2. #2
    Registered User
    Join Date
    Oct 2009
    Posts
    90

    Re: Problem executing my app outside the QtCreator (QTimer)

    Well, seems like it works if I don't have

    Code:
    m_timer.start(0)
    Works fine if it waits ten miliseconds instead of "zero".

    What I cannot understand is why something fails when the device unplugged and it wors fine plugged. I try always in both debug and release mode... I don't understand.

Similar Threads

  1. Problem using Qtimer
    By fareenafatima in forum Qt
    Replies: 1
    Last Post: 2010-12-24, 01:32
  2. QTest unit testing QTimer problem
    By remy_david in forum Qt
    Replies: 1
    Last Post: 2010-12-10, 16:06
  3. Can I get the sms from the inbox by my app on my S40 cellphone?
    By seseboy in forum Mobile Java General
    Replies: 2
    Last Post: 2009-12-22, 05:07
  4. Replies: 5
    Last Post: 2007-12-25, 19:17

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×