Qt setWindow setViewPort
2021-06-19 04:06
标签:tor inter length window idt width port cto view Qt setWindow setViewPort 标签:tor inter length window idt width port cto view 原文地址:https://www.cnblogs.com/yangjunhe460/p/10289587.htmlpainter.setWindow(-50, -50, 100, 100); //表示x,y坐标不变,可视的窗口移动到(-50,-50)的位置。同时在x,y方向产生factorx= (window.width())/100,的放大因子。
//factory= (window.length))/100,的放大因子。painter.setViewport(50, 50, 400, 300);//表示窗口不东,(x,y)坐标移动到(50,50)的位置,且在x方向产生factorx= 400/(window.width())的放大因子。