use qt_gui::{qt_core::QPoint, QGuiApplication, QWindow}; #[test] fn window1() { QGuiApplication::init(|_| unsafe { let a = QWindow::new(); let b = QWindow::from_q_window(&a); let c = QWindow::from_q_window(&b); a.set_geometry_4a(10, 10, 300, 300); b.set_geometry_4a(20, 20, 200, 200); c.set_geometry_4a(40, 40, 100, 100); let point = QPoint::new_2a(100, 100); let r1 = a.map_to_global(&point); assert_eq!(r1.x(), 110); assert_eq!(r1.y(), 110); 0 }) }