Results 1 to 4 of 4

Thread: sine wave not generated with click of pushButton

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Wiki edits
    15

    Default Re: sine wave not generated with click of pushButton

    The QMainWindow pops up when I run it. But when I input values for frequency and amplitude and push the pushButton, no sine wave is generated. I'm not sure why.
    Any help would be greatly appreciated.
    To start with, please help others to understand what is going wrong, set break points in pushbutton slot and check where the control goes, this the one of the first things one would do, please do this, if not already done, and post the results, if you are not able figure out what is going wrong, then the someone can help.

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    520
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 77 Times in 75 Posts

    Default Re: sine wave not generated with click of pushButton

    Hi, after a quick look it seems like you never set isTrue to true, so probably your while(isTrue) loop will never be executed.

    Ginsengelf

  3. #3
    Join Date
    Aug 2011
    Posts
    35
    Thanks
    5

    Default Re: sine wave not generated with click of pushButton

    Quote Originally Posted by Ginsengelf View Post
    Hi, after a quick look it seems like you never set isTrue to true, so probably your while(isTrue) loop will never be executed.

    Ginsengelf
    Hi when i put isTrue = true, my program terminates when I click the push button. I'm not sure why this is.

    Okay guys, so I don't seem to have explained things very clearly, so I'm going to start a new thread with a clear and long explanation as I have two problems now.

Similar Threads

  1. draw wave problem
    By lzpmail in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 8th April 2011, 11:31
  2. Right-Click menu on a pushButton doesn't show up
    By qtpyqt in forum Qt Programming
    Replies: 6
    Last Post: 9th September 2010, 17:58
  3. twice execution of click on pushbutton?
    By rambo83 in forum Newbie
    Replies: 8
    Last Post: 10th November 2009, 12:21
  4. pushButton click event
    By aj2903 in forum Qt Programming
    Replies: 1
    Last Post: 9th June 2009, 11:19
  5. Working out table's current row from pushbutton click
    By shooogun in forum Qt Programming
    Replies: 1
    Last Post: 16th March 2008, 23:40

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.