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.
如何将元素移动到光标所在的位置?例如:我想将组合框移动到元素文本框中光标所在的位置。
您可以使用QWidget::move(int x, int y)将任何小部件移动到光标的位置:QCursor::pos()
QWidget::move(int x, int y)
QCursor::pos()