klauer / qtpydocking

{{deprecated}} Qt-Advanced-Docking-System for qtpy (PyQt5 / PySide)
BSD 3-Clause "New" or "Revised" License
9 stars 6 forks source link

Can't dock widget in 'simple' example #9

Open n-elie opened 4 years ago

n-elie commented 4 years ago

Hello,

I just have a try to your project and it seems to work very well except for one thing. I tried to launch the simple example and found that I can't dock again a windows if it was undocked using mouse move.

I just launched the simple example and undock the top widget by clicking on it with left mouse button and moving it away from the main window. Then I tried to dock it again in the upper part of the main window. Here is the log: mousemove.txt

Then I did the same thing by double clicking in the title of the top widget and dock it again. It works by doing like this. Here is the log: doubleclick.txt

I am using python 3.7 and PyQt5 on Windows 7 64 bits.

Any idea of what could be wrong?

Regards, Nicolas

n-elie commented 4 years ago

I forgot to add that it is working in the compiled Qt-Advanced-Docking-System.

Regards

klauer commented 4 years ago

Hi @n-elie, thanks so much for giving the library a try and reporting your issue!

Can you take a look to see which Qt version is being used in your Python environment? And is the Qt version used with your Python environment and the one you're using with the compiled C++ the same?

This library is without question buggier than the C++ version - I'm afraid I haven't had as much time as I'd like to dig into even the issues I've run into.

n-elie commented 4 years ago

Sorry for the delay. I use Python from Anaconda and Qt from conda-forge. The Qt version is 5.9.7 and PyQt is 5.9.2. Compiled C++ is linked to Qt 5.10.1. I also tried with Qt 5.9.6 and this is also working well.

Anyway, I wanted to let you know that I wrote some Python bindings for Qt-Advanced-Docking-System: https://github.com/metgem/Qt-Advanced-Docking-System It probably can be improved but your two examples are working with these bindings.