Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究 Qt,当我将小部件的大小设置为 W=360 H=640 时,它会超出模拟器的屏幕,设备分辨率为 360*640 但仍不显示整个屏幕。有没有其他方法可以将内容固定到屏幕上?
要在 Qt Simulator 上正确调整小部件大小,请从 main.cpp 文件中删除条件(显示在以下代码片段中)并保留 w.showMaximized(); 线:
#if defined(Q_WS_S60) w.showMaximized(); #else w.show(); #endif