Qt 中获取屏幕的绝对坐标

    QDesktopWidget* desktopWidget = QApplication::desktop();
    QRect clientRect = desktopWidget->availableGeometry();
    QRect applicationRect = desktopWidget->screenGeometry();
    qDebug() << clientRect << "  " << applicationRect ;
发布了99 篇原创文章 · 获赞 25 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/weixin_39568531/article/details/103709597
今日推荐