In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
How to make the window without border blabla not to write?
/ /. Cpp
Void Dialog::mousePressEvent (QMouseEvent * event) {px=event- > x (); py=event- > y (); / / record the relative window coordinates of the mouse pxx=geometry (). Width (); / / window width pyy=geometry (). Height (); / / window height hx=geometry () .x (); hy=geometry () .y () / / record the window properties when the mouse is pressed, the coordinates of the top left point of the window (hx,hy) kx=cursor (). Pos (). X (); ky=cursor (). Pos (). Y (); / / record the global coordinates of the mouse (there are probably other ways to record the mouse, but I can't QwQ update ();} void Dialog::mouseMoveEvent (QMouseEvent * event) {if (px > pxx-10&&pxsetGeometry (hx,hy,pxx+event- > x ()-px,pyy)) } if (py > pyy-10&&pysetGeometry (hx,hy,pxx,pyy+event- > y ()-py);} if (py > pyy-10&&pypxx-10&&pxsetGeometry (hx,hy,pxx+event- > x ()-px,pyy+event- > y ()-py);} if (px > 0&&px0&&pysetGeometry (hx+cursor (). Pos (). X ()-kx,hy+cursor (). Pos (). Y ()-ky,pxx,pyy) } / / for lengthening and widening, it should be possible to use both relative window coordinates and relative screen coordinates, but drag-and-drop operations can only calculate update () with relative screen coordinates;}
Anyway, it is to record the coordinates of the mouse click to the drag and zoom trigger area (the zoom area set here is apart from the rightmost and lowest part of the window, and the drag area is except the zoom area), and then record the coordinates when the mouse is clicked over and moved, and then add or subtract it. _ .
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.