View Single Post
Old Yesterday, 12:42 PM   #37
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,475
Karma: 6734148
Join Date: Nov 2009
Device: many
Okay, based on earlier suggestions/comments, I have been thinking about how we could do a drag and drop to basically do the same thing as AddExisting ...

Since I do not want to add the entire MainWindow as a drop target (given how unreliable Drag and Drop is), I want to restrict it to a small QLabel field that files can be dropped on.

So as a pilot project I created a FileDropZone (inheriting from QLabel). See the extra addition to the bottom status bar on the right of the attached image.

My questions:

1. Is the ability to use drag and drop to add existing files to an epub important if we can do it safely - which I think we can given a QLabel really is a simplest drop target.

2. What do you think of the Drop Zone QLabel idea as shown in the status bar in the MainWindow? It will give visual feedback when you hover with dragged files over it.

3. Given things change position in the status bar, is there a better place to put this File Drop Zone? Would adding it instead be better as the very first thing inside BookBrowser (it would not take up much space) make more sense? But it could get scrolled off the screen as BookBrowser is a scrollable QDockWidget. Maybe the statusbar is the right place?

Any feedback on the general idea and how to best implement it is welcome. But please remember I do not want to give full QDockWidgets or the MainWindow to drag and drop rights and definitely want to limit file io via drag and drop to a small dedicated zone.

All feedback welcome.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20260326_122735.png
Views:	18
Size:	145.7 KB
ID:	222071  

Last edited by KevinH; Yesterday at 12:44 PM.
KevinH is online now   Reply With Quote