Results 1 to 4 of 4

Thread: Problem with operating of QTimer

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    84
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanked 1 Time in 1 Post

    Default Problem with operating of QTimer

    Hi,
    I have a problem with QTimer.In my application there is a main window and two Pushbuttons on main window.If I click one button a QTimer *timer will starts calling one function for every 10ms.It is declared in .h file of mainwindow as public .If I click second Pushbutton dialog will opens.Here in the dialog class I want to stop the timer which was started in mainwindow class.The code i used is shown below.

    Qt Code:
    1. mainwin owin;
    2. owin.timer->stop();
    To copy to clipboard, switch view to plain text mode 

    I wrote this code in dialog constructor.But it showing some run time error as "Unhandled exception at 0x670df703 in lpsc-jul16th.exe: 0xC0000005: Access violation reading location 0x56530908." and "There is no source code available for the current location." when i click the second Pushbutton to open the dialog.
    So please help me to solve this problem.

    With Regards,
    Sudheer.
    Last edited by sudheer168; 8th October 2008 at 08:19.

Similar Threads

  1. QTimer problem
    By rajeshs in forum Qt Programming
    Replies: 3
    Last Post: 13th September 2008, 14:33
  2. Problem in using QHttp with QTimer
    By Ferdous in forum Newbie
    Replies: 2
    Last Post: 6th September 2008, 12:48
  3. PyQt QTimer problem { FIXED }
    By WinchellChung in forum Newbie
    Replies: 0
    Last Post: 1st March 2008, 16:50
  4. QTimer problem
    By vv in forum Qt Programming
    Replies: 9
    Last Post: 3rd July 2007, 08:13
  5. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 12:54

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.