引用第5楼banyibanyi于2010-03-04 17:52发表的 :desk = QApplication::desktop(); int w = desk->width();// 返回桌面宽度你是指这样吗?