Results 1 to 9 of 9

Thread: Stack overflow while resizing QwtScaleWidgets

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Stack overflow while resizing QwtScaleWidgets

    No surprise, when you pass NULL instead of a valid transformation object.

    Uwe

  2. #2
    Join Date
    Feb 2009
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Stack overflow while resizing QwtScaleWidgets

    Thanks for the hint!

    But it still doesn't work. I tried the following and it still crashes.

    Qt Code:
    1.  
    2. for( int i = 0; i < 100; i++ ){
    3. scale->setScaleDiv( trans, engine->divideScale( 0, i, 6, 10, 10 ) );
    4. scale2->setScaleDiv( trans2, engine2->divideScale( 0, i, 6, 10, 10 ) );
    5. }
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Stack overflow while resizing QwtScaleWidgets

    Qt Code:
    1. for( int i = 0; i < 100; i++ ){
    2.  
    3. // you can't reuse the transformation objects !
    4.  
    5. scale->setScaleDiv( trans, engine->divideScale( 0, i, 6, 10, 10 ) );
    6. scale2->setScaleDiv( trans2, engine2->divideScale( 0, i, 6, 10, 10 ) );
    7. }
    To copy to clipboard, switch view to plain text mode 

    HTH,
    Uwe

  4. #4
    Join Date
    Feb 2009
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Stack overflow while resizing QwtScaleWidgets

    Still doesn't work.
    I'll try to find a workaround for this to avoid the seperate scales.

  5. #5
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Stack overflow while resizing QwtScaleWidgets

    Quote Originally Posted by Vashkoda View Post
    Still doesn't work.
    What does this mean ?

    [ ] The same crashes are still there
    [ ] You are running into other crashes.
    [ ] The crashes are gone, but you are not able to implement your idea with external scale widgets.

    Uwe

  6. #6
    Join Date
    Feb 2009
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Stack overflow while resizing QwtScaleWidgets

    It works!

    I use Perforce SVN and I found that Perforce has qt*.dll's in its path. Of course different versions of Qt than I have. Removing the Perforce entry from the system path solved a lot of oddities.

    Thanks for the help, Uwe!

Similar Threads

  1. QThread stack overflow when exiting
    By jakamph in forum Qt Programming
    Replies: 4
    Last Post: 11th May 2006, 17:56

Tags for this Thread

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.