Comments (8)
对的,因为最初设计的时候QCefView是作为一个UI组件,就是要禁止用户拖放文件的操作,以及从页面拖拽link出去,如果你拖拽一个link到QCefView那页面就直接跳转了。
你可以帮忙增加一个接口控制是否允许DND操作,例如
QCefView::setEnabletDragAndDrop(const bool enable);
bool QCefView::isDragAndDropEnabled() const;
from cefviewcore.
注意 CefViewBrowserClient::OnDragEnter 只在NCW模式下有效
from cefviewcore.
https://github.com/orgs/CefView/projects/1/views/1?layout=board&pane=issue&itemId=31185880
from cefviewcore.
注意 CefViewBrowserClient::OnDragEnter 只在NCW模式下有效
这个函数NCW,OSR模式下无法做到通用吗
from cefviewcore.
对的,因为最初设计的时候QCefView是作为一个UI组件,就是要禁止用户拖放文件的操作,以及从页面拖拽link出去,如果你拖拽一个link到QCefView那页面就直接跳转了。
你可以帮忙增加一个接口控制是否允许DND操作,例如
QCefView::setEnabletDragAndDrop(const bool enable);
bool QCefView::isDragAndDropEnabled() const;
可以的
from cefviewcore.
对的,因为最初设计的时候QCefView是作为一个UI组件,就是要禁止用户拖放文件的操作,以及从页面拖拽link出去,如果你拖拽一个link到QCefView那页面就直接跳转了。
你可以帮忙增加一个接口控制是否允许DND操作,例如 QCefView::setEnabletDragAndDrop(const bool enable); bool QCefView::isDragAndDropEnabled() const;
功能已经实现了,但是目前有个问题,当拖拽html、md等文件到窗口非接收拖拽文件区域会直接显示该文件
另外还有一点,OnDragEnter()
函数在NCW,OSR模式下无法做到通用吗
https://github.com/L-Super/QCefView/tree/dragHandler
from cefviewcore.
功能已经实现了,但是目前有个问题,当拖拽html、md等文件到窗口非接收拖拽文件区域会直接显示该文件
这个就是当时禁用drop操作的原因
OnDragEnter()函数在NCW,OSR模式下无法做到通用吗
这个限制在于CEF,而不是QCefView
from cefviewcore.
功能已经实现了,但是目前有个问题,当拖拽html、md等文件到窗口非接收拖拽文件区域会直接显示该文件
这个就是当时禁用drop操作的原因
这个目前有办法解决吗
from cefviewcore.
Related Issues (12)
- CefViewBrowserClient.cpp的228行 auto context = arguments->GetDouble(0); 无法获取到context的值。 HOT 2
- Looking some help for MacOS HOT 2
- Cef version selection HOT 1
- http://opensource.spotify.com/cefbuilds/index.html is not available HOT 1
- 111.2.7+gebf5d6a+chromium-111.0.5563.148 / Chromium 111.0.5563.148版本支持 HOT 2
- Build break with cef91 HOT 1
- Maybe error platform macro HOT 1
- A question about "CefViewClient::V8ValueToCefValue" HOT 5
- CefDownloadHandler HOT 2
- CefViewWing cannot start
- is there any win32 demo without qt deps HOT 1
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 cefviewcore.