Results 1 to 4 of 4

Thread: QVTKWidget + Dock/undock + MAC OS.

  1. #1
    Join Date
    Nov 2015
    Posts
    11
    Qt products
    Qt5
    Platforms
    Windows

    Default QVTKWidget + Dock/undock + MAC OS.

    Hello,

    I am facing a very strange issue only on MAC OS, with Dock/Undocking when one of the docked widget is QVTKWidget. I have a centralWidget which contains four tabs. Each tab is an inherited from QWidget. Among these, one widget is QVTKWidget. The issue what I am facing is when I click on the bar and try to undock, the mouse events are lost. I release the mouse button and move the mouse, QVTKWidget keeps moving along with the mouse. I need to click once again on the tab and then it gets undocked fully. Some times while undocking or docking, I observed flickering effect on the renderwindow.

    It gives feeling like QDockWidget is passing some information/signal to its widgets, which QVTKWidget is not able to process, and other QWidgets are able to process. Has anyone come across this type of scenario?

    Thanks in advance

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QVTKWidget + Dock/undock + MAC OS.

    I would not be surprised. VTK implements its own interfaces to the native windowing system, and the QVTKWidget is just a wrapper around that exposing it to Qt. Under the hood, VTK uses OpenGL for rendering. So there is a lot going on, and it is possible that events might get misrouted under some circumstances.

    As an experiment, you might try substituting a QOpenGLWidget in its place and see if similar things happen. It might be OpenGL and not VTK that's at fault.

  3. #3
    Join Date
    Nov 2015
    Posts
    11
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QVTKWidget + Dock/undock + MAC OS.

    Hi d_stranz,

    Thanks for your quick reply. At the beginning stage, I was using QOpenGLWidget. With that I am not facing this issue. And as I said this issue is only shown in MAC. I tried the same code on windows and it works absolutely fine.

    Thanks
    Last edited by rakeshthp; 8th February 2016 at 04:29.

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QVTKWidget + Dock/undock + MAC OS.

    I think Kitware has a forum, so you might do better to post the question there.

Similar Threads

  1. Dock/Undock of Tabs in QTabWidget
    By Arjun in forum Qt Programming
    Replies: 2
    Last Post: 3rd November 2015, 17:14
  2. update the actor in the qvtkWidget
    By cerina in forum Newbie
    Replies: 0
    Last Post: 28th November 2012, 05:37
  3. Replies: 2
    Last Post: 4th April 2012, 18:01
  4. QVTKWidget
    By floyd.pepper in forum Newbie
    Replies: 1
    Last Post: 7th March 2012, 14:15
  5. undock QDockWidget
    By chemstar in forum Qt Programming
    Replies: 1
    Last Post: 1st September 2006, 11:11

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.