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.
如果我调用 .adjust() 方法而不实际调用它,我需要知道小部件的大小。
我怎样才能做到这一点?
我使用过.sizeHint(),它对我的情况有所帮助。
.sizeHint()