Notes for Qt remote machine development

Source: Internet
Author: User

A strange problem in recent projects is that when the final m_lastpos is recorded as the middle position of the current widget, qcursor is set as the current middle position.

At this time, when I started to move, I found that the offset has a very strange maximum value. Later I found that because my working environment is a remote machine environment, when I call the global qcursor of the system :: when setpos is used, the cursor is still in my original place. At this time, the cursor jump will naturally occur when offset is used.

The solution is to record the currentpos (m_lastpos = qcursor: pos (), in this way, the offset is too large.

Notes for Qt remote machine development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.