Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
macOS Mojave 10.14.6是否导致QT断裂?_Macos_Qt - Fatal编程技术网

macOS Mojave 10.14.6是否导致QT断裂?

macOS Mojave 10.14.6是否导致QT断裂?,macos,qt,Macos,Qt,我将macOS升级到10.14.6,现在QT屏幕出现故障,使用旧的10.14.5,我得到的一个显示器的几何图形与Quarz API(l=7200,t=0,r=9120,b=1080)完全相同,升级到10.14.6后,相同的硬件,石英的结果与上面相同,但QT得到的结果是相同的 (l=7200,t=-180,r=9119,b=899),此监视器为1080P监视器 auto allScreens = QGuiApplication::screens(); INFO_LOG( "Tota

我将macOS升级到10.14.6,现在QT屏幕出现故障,使用旧的10.14.5,我得到的一个显示器的几何图形与Quarz API(l=7200,t=0,r=9120,b=1080)完全相同,升级到10.14.6后,相同的硬件,石英的结果与上面相同,但QT得到的结果是相同的 (l=7200,t=-180,r=9119,b=899),此监视器为1080P监视器

    auto allScreens = QGuiApplication::screens();
    INFO_LOG( "Total screens: %d", allScreens.count() );
    for ( auto i = 0; i < allScreens.count(); i++ )
    {
        auto thisScreen = allScreens.at( i );
        if ( thisScreen->name() == "MyDisplay" )
        {
            auto rect = thisScreen->geometry();
            m_window->move( rect.x(), rect.y() );
            INFO_LOG(
                    "Found the monitor (x=%d, y=%d, w=%d, h=%d) and put my application window on it",
                    rect.x(),
                    rect.y(),
                    rect.width(),
                    rect.height() );
            break;
        }
    }
auto-allScreens=QGuiApplication::screens();
信息日志(“总屏幕数:%d”,allScreens.count());
对于(自动i=0;iname()=“MyDisplay”)
{
auto rect=thisScreen->geometry();
m_窗口->移动(rect.x(),rect.y());
信息日志(
“找到监视器(x=%d,y=%d,w=%d,h=%d)并将我的应用程序窗口放在上面”,
rect.x(),
rect.y(),
矩形宽度(),
垂直高度();
打破
}
}

QT版本是5.12,我也更新到了10.14.6,我的外部显示器也是1080p。QScreen在Qt 5.12.5和Qt 5.13.1中都报告了我的外部监视器的正确几何结构。这很奇怪,我想问题只发生在虚拟监视器上,而不是物理监视器上