mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-16 14:15:57 -06:00
[GH-ISSUE #142] DropArea doesn't work on Windows #84
Labels
No labels
bug
enhancement
help wanted
help wanted
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/qmlnet#84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vadi2 on GitHub (Jun 13, 2019).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/142
DropArea doesn't accept any input when used in Windows under Qml.Net, it always shows the "blocked" icon.
The given Qml file will work fine in Qml.Net on Linux and in C++ on Linux, and also OK under C++ on Windows, but not in Qml.net on Windows:
Attached are two sample projects to reproduce the problem:
cpp-dnd.zip
dotnet-dnd.zip
With Qml.Net:
With C++:
@vadi2 commented on GitHub (Jul 18, 2019):
@pauldotknopf any ideas?
@pauldotknopf commented on GitHub (Jul 18, 2019):
Have you tried ruling out QmlNet? Can you reproduce with a standard Qt/QML project, within Qt Creator?
@vadi2 commented on GitHub (Jul 18, 2019):
It works with a standard project - see attached standard project and a gif of it working.
@pauldotknopf commented on GitHub (Jul 18, 2019):
I suspect it might be because of the type of Windows application that is created in .NET Core 2.X (console only).
Maybe try .NET Core 3, and use the option to publish executable as non-console (forgot what they called it).
@MaxMommersteeg commented on GitHub (Jul 18, 2019):
You mean
<OutputType>WinExe</OutputType>?@vadi2 commented on GitHub (Jul 18, 2019):
It doesn't help - I already build my application as:
See the release at https://github.com/health-validator/Hammer, can't drag and drop into it on Windows :(
@pauldotknopf commented on GitHub (Jul 18, 2019):
Bummer. I'm not really sure what to make of this. There must be some flag that you can use to tell windows that this window supports dropping.
I wonder how PyQt handles this, since it has it's own main entry point as well.
What do you think about using the unmanaged setup? https://qmlnet.github.io/setup/unmanaged-hosting/
It will likely fix it.
@vadi2 commented on GitHub (Jul 20, 2019):
I'll see if it fixes things... but unmanaged doesn't make much sense to me: if I'm getting down to C++, I might as well use it for the entirety of the project. This is why I started out with managed.
@pauldotknopf commented on GitHub (Jul 20, 2019):
What I would do is jump into Qt to find how it is accepting the file-dropping on Windows, then investigate it to determine why it wouldn't be available in a console application.