Comments (9)
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.
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.
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.
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.
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.
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.
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.
That's great news for lognplot! Is there a workaround to make it work? I still suspect the custom mime datatype.
from lognplot.
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)
- Add integration with hawktracer
- Add option to tail customized timespan
- Support ipv4 / ipv6 everywhere HOT 1
- swvviewer on crates.io HOT 5
- Wrong instruction for installation: cargo run vs. build HOT 1
- RFC: simulink adapter
- Windows build: ease the pain HOT 1
- Crash when adding plots HOT 1
- Option to link plot axis HOT 1
- Interface with arduino serial plotter
- Give meta chart real time timestamps HOT 1
- Add feature to load HDF5 file on drag drop into application HOT 1
- Plotting NaN Values has strange behaviour HOT 3
- Feature request: adapter for icecream (distributed computing cluster) HOT 1
- Feature: text logging HOT 1
- New Release to crates.io? HOT 2
- Feature request: influx DB line protocol adapter
- Add trigger signal type
- Crash when zooming in all the way
- how to properly use rust network client HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lognplot.