Results 1 to 3 of 3

Thread: Mac Os

  1. #1
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question Mac Os



    Hi!

    I'm programing using Qt in Xcode, to Mac OS.
    But i've a problem...

    I've an Item and in this item i've created one slot that append after the timeLine that is running emmites finished() singal. In debug mode, it works very well, but not in release mode.

    For exemple, i've this:

    void Item::slotTest()
    {
    QString s = "OK!";
    }

    void Item::StartAnim()
    {
    QTimeLine * timeLine = new QTimeLine();
    timeLine.>setDuration(1000);

    connect( timeLine, SIGNAL( finished() ), this, SLOT( slotTest() ) );

    timeLine->start();

    }


    Can you help me?
    Why the signal finished() is not sended by timeLine when it Stops?
    It happens only in release mode and only in Mac OS.
    And also using startTimer( xxx ); -> item's timer


  2. #2
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Mac Os

    By the way, sorry my bad English

  3. #3
    Join Date
    Sep 2007
    Location
    Rome, GA
    Posts
    199
    Thanks
    14
    Thanked 41 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Mac Os

    Provided slotTest() is declared as a slot and the class has the Q_OBJECT macro, I see no reason this shouldn't work. Have you set the loop count? If its continually looping, I don't believe finished will be called.

  4. The following user says thank you to JimDaniel for this useful post:

    Daniela (15th October 2008)

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.