Results 1 to 8 of 8

Thread: qvtkwidget crashes when it is used inside a slot, please help

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2014
    Posts
    5
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default qvtkwidget crashes when it is used inside a slot, please help

    Hi all,

    I have a strange problem regarding the behaviour of QVVKWidegt.

    In my GUI I used a widget which is promoted to qvtkwidget inorder to visualize a 3D image.
    I want the visualisation to start when I click a button (okbutton), for that, I have made signal slot connection as follows:
    connect(ui->okButton, SIGNAL(clicked()),this, SLOT(VisualizeVolumes);
    my code is built without any error however when I click the okbutton, I got an access violation at runtime.

    When I call VisualizeVolumes as function(without slot)it works fine and even if I do the visualisation just after line ui->setupUi(this), it works as well.The crash happen only when I try to put VisualizeVolumes as slot.

    I am a newbie to qt so please can you help? I am really stack and could not move?

    I have attached my files for your attention

    I am using itk4.4.2 vtk6 and Qt4.8.5
    Thanks,
    Adem
    Attached Files Attached Files

Similar Threads

  1. update the actor in the qvtkWidget
    By cerina in forum Newbie
    Replies: 0
    Last Post: 28th November 2012, 05:37
  2. QVTKWidget
    By floyd.pepper in forum Newbie
    Replies: 1
    Last Post: 7th March 2012, 14:15
  3. Replies: 8
    Last Post: 21st December 2011, 17:11
  4. Signal - Slot connection inside loop
    By onurozcelik in forum Qt Programming
    Replies: 5
    Last Post: 24th June 2010, 16:45
  5. QIODevice dosn't work inside slot
    By s410i in forum Qt Programming
    Replies: 1
    Last Post: 1st August 2009, 11:10

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.