Giter Site home page Giter Site logo

Comments (9)

windelbouwman avatar windelbouwman commented on June 7, 2024

What can I say, this sucks! Do you see the drag indicator? This reminds me to make a video on usage. Do you have the four panels on the right? You should be able to drop signals onto the empty panels.

from lognplot.

TimonTerBraak avatar TimonTerBraak commented on June 7, 2024

Yepp, I think the concept was clear. It it similar to the interface of PlotJuggler, right? The drop indicator (+) is nicely appearing when hovering over the area, but nothing happens upon release.

from lognplot.

windelbouwman avatar windelbouwman commented on June 7, 2024

Does the signal contain any points?

Otherwise, you would have to put some print statements in this file, where the drop should happen: https://github.com/windelbouwman/lognplot/blob/master/python/lognplot/qt/widgets/dashboard.py

from lognplot.

windelbouwman avatar windelbouwman commented on June 7, 2024

Yepp, I think the concept was clear. It it similar to the interface of PlotJuggler, right? The drop indicator (+) is nicely appearing when hovering over the area, but nothing happens upon release.

Yes, concept is similar, drag signals from the left panel to the right. You could even select multiple signals at the same time.

from lognplot.

TimonTerBraak avatar TimonTerBraak commented on June 7, 2024

Tried to resolve this, but so far no luck. The dragEnterEvent is called and the proposed action is accepted. However, no other drag'n'drop related event is invoked. I also tried with playing around with the mime types (https://stackoverflow.com/questions/42838419/python-pyqt5-qlistwidget-doesnt-accept-drops), but without any luck.
You may find multiple issue regarding drag'n'drop with QWidgets. Is a QFrame a good candidate, or should we pick another widget more suitable for drag'n'drop?

from lognplot.

windelbouwman avatar windelbouwman commented on June 7, 2024

QFrame derives from QWidget, so it should be pretty basic, except that is has an extra frame around it.

It might also be caused by the custom mime type, you could try changing the mime type to "text/plain", this is a commonly accepted mime type, and since drag and drop is an OS function, it might be a security thing.

I checked my version info, python 3.8.0 and Qt 5.13.2.

from lognplot.

TimonTerBraak avatar TimonTerBraak commented on June 7, 2024

My last observation is that the problem only occur with Gnome running on Wayland. Running on Xorg seems working fine. Curious, but together with my code review it seems that lognplot is not to blame.

from lognplot.

windelbouwman avatar windelbouwman commented on June 7, 2024

That's great news for lognplot! Is there a workaround to make it work? I still suspect the custom mime datatype.

from lognplot.

TimonTerBraak avatar TimonTerBraak commented on June 7, 2024

Found a bug report trail mentioning this issue here:
https://ask.fedoraproject.org/t/qt5-drag-and-drop-problem/4486
https://gitlab.gnome.org/GNOME/mutter/issues/965
https://bugreports.qt.io/browse/QTBUG-80303

The workaround is:
$ QT_QPA_PLATFORM=xcb python -m lognplot

from lognplot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.