Results 1 to 16 of 16

Thread: Continuous wave Drawing

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2013
    Posts
    14
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Windows Android

    Default Re: Continuous wave Drawing

    Hi experts,
    Kindly do the needfull for the same.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Continuous wave Drawing

    You are creating a layout for WaveDraw but forget to add the two frames that contain the buttons.

    You are also lucky that QThread::msleep() is a static method, because WaveDraw::thread() returns the thread that owns the WaveDraw object, which is the main thread.

    You do not have any synchronization on access to the data shared between the two threads.

    Cheers.
    _

  3. #3
    Join Date
    Sep 2013
    Posts
    14
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Windows Android

    Default Re: Continuous wave Drawing

    Hi anda_skoa,
    Kindly let me know the solution for smooth drawing in same code.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Continuous wave Drawing

    I have no idea what you mean, the drawing seems to work fine.

    Cheers,
    _

  5. #5
    Join Date
    Sep 2013
    Posts
    14
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Windows Android

    Default Re: Continuous wave Drawing

    Quote Originally Posted by anda_skoa View Post
    I have no idea what you mean, the drawing seems to work fine.

    Cheers,
    _
    Hi anda_skoa,
    I used QImage for drawing wave.Mouse clicked not working on button but keyboard event working.
    On keyboard enter button click, wave stuck for a while.Please find Attachment for updated WaveDraw.zip file.
    I also used a separate thread class,problem is still remain same.Kindly let me know the solution for smooth drawing.
    Attached Files Attached Files
    Last edited by Girish1483; 10th February 2014 at 09:24.

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Continuous wave Drawing

    Quote Originally Posted by Girish1483 View Post
    I used QImage for drawing wave.Mouse clicked not working on button but keyboard event working.
    I already answered that one in comment #11.

    Quote Originally Posted by Girish1483 View Post
    On keyboard enter button click, wave stuck for a while.
    Worked for me. How long does it get stuck for you? What is your main thread doing while this is happening?

    Cheers,
    _

  7. #7
    Join Date
    Sep 2013
    Posts
    14
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Windows Android

    Default Re: Continuous wave Drawing

    Quote Originally Posted by anda_skoa View Post
    I already answered that one in comment #11.


    Worked for me. How long does it get stuck for you? What is your main thread doing while this is happening?

    Cheers,
    _
    Hi anda_skoa,
    Kindly check new updated code which i attached above.Wave stuck till new dialog open.

Similar Threads

  1. Generating continuous wave (sine/cos)
    By mind_freak in forum Qwt
    Replies: 1
    Last Post: 21st August 2012, 12:47
  2. QGLWidget tilts on continuous resize ?
    By tonnot in forum Qt Programming
    Replies: 1
    Last Post: 5th August 2011, 03:04
  3. CONTINUOUS PDF page problem
    By xiangxw in forum Qt Programming
    Replies: 1
    Last Post: 20th July 2011, 12:05
  4. create non continuous vertical bar
    By bibhukalyana in forum Qt Programming
    Replies: 3
    Last Post: 9th May 2011, 11:35
  5. Continuous Printing
    By Prabha in forum General Discussion
    Replies: 0
    Last Post: 28th July 2010, 11:01

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.