Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在包括 QWebView 本身在内的众多对象上使用 cursor() 属性,但这似乎返回了鼠标光标的位置,而不是文本光标。我正在尝试做这样的事情......
QWebView* view = new QWebView(this); view->page()->setContentEditable(true); Point* p = view->cursor().pos(); // mouse cursor!