[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Faulty Drag Data under QT?
[Thread Prev] | [Thread Next]
- Subject: Re: Faulty Drag Data under QT?
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Thu, 12 Feb 2026 11:35:45 +0000
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
On Thu, 12 Feb 2026, 10:52 Claus Dietrich, <claus.dietrich@xxxxxxxxxx> wrote: > When I drag a file from Nemo and drop it into my app (gb.gui.qt), the > following 3 lines .... > > Public Sub Form_Drop() > Print "Drag.Type:"; Drag.Type > Print Drag.Data > End > > deliver following strange output in the IDE console: > Drag.Type: 1 > 0:-8:436:20e/claus/Bilder/Bildschirmfoto%20vom%202026-02-08%2016-09-59.png > > When I switch from gb.gui.qt to GTK+3 the IDE console output is > Drag.Type: 1 > file:///home/claus/Bilder/Bildschirmfoto%20vom%202026-02-08%2016-09-59.png > > Do we have a bug here? > Best regards > Claus > No. Drag.Data is the raw data and it's format can vary depending on toolkit. You should avoid Drag.Data and use Drag.Paste Then you should get better results. Also remember Drag.Type is used mostly only to define between drag.image or some kind of text format. The format to use for drag.paste (the mime format) will be in either Drag.Format or one of Drag.Formats[] Drag.Type equaling Drag.Text does not mean you're going to get text/plain mime type. Respects BruceS
| Re: Faulty Drag Data under QT? | Bruce Steers <bsteers4@xxxxxxxxx> |
| Re: Faulty Drag Data under QT? | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Faulty Drag Data under QT? | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |