Code Monkey home page Code Monkey logo

Comments (8)

tishion avatar tishion commented on May 23, 2024

对的,因为最初设计的时候QCefView是作为一个UI组件,就是要禁止用户拖放文件的操作,以及从页面拖拽link出去,如果你拖拽一个link到QCefView那页面就直接跳转了。

你可以帮忙增加一个接口控制是否允许DND操作,例如
QCefView::setEnabletDragAndDrop(const bool enable);
bool QCefView::isDragAndDropEnabled() const;

from cefviewcore.

tishion avatar tishion commented on May 23, 2024

注意 CefViewBrowserClient::OnDragEnter 只在NCW模式下有效

from cefviewcore.

tishion avatar tishion commented on May 23, 2024

https://github.com/orgs/CefView/projects/1/views/1?layout=board&pane=issue&itemId=31185880

from cefviewcore.

L-Super avatar L-Super commented on May 23, 2024

注意 CefViewBrowserClient::OnDragEnter 只在NCW模式下有效

这个函数NCW,OSR模式下无法做到通用吗

from cefviewcore.

L-Super avatar L-Super commented on May 23, 2024

对的,因为最初设计的时候QCefView是作为一个UI组件,就是要禁止用户拖放文件的操作,以及从页面拖拽link出去,如果你拖拽一个link到QCefView那页面就直接跳转了。

你可以帮忙增加一个接口控制是否允许DND操作,例如
QCefView::setEnabletDragAndDrop(const bool enable);
bool QCefView::isDragAndDropEnabled() const;

可以的

from cefviewcore.

L-Super avatar L-Super commented on May 23, 2024

对的,因为最初设计的时候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

@tishion

from cefviewcore.

tishion avatar tishion commented on May 23, 2024

功能已经实现了,但是目前有个问题,当拖拽html、md等文件到窗口非接收拖拽文件区域会直接显示该文件

这个就是当时禁用drop操作的原因

OnDragEnter()函数在NCW,OSR模式下无法做到通用吗

这个限制在于CEF,而不是QCefView

from cefviewcore.

L-Super avatar L-Super commented on May 23, 2024

功能已经实现了,但是目前有个问题,当拖拽html、md等文件到窗口非接收拖拽文件区域会直接显示该文件

这个就是当时禁用drop操作的原因

这个目前有办法解决吗

from cefviewcore.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.