StupidBeauty
Read times:1337Posted at:Sat Nov 12 01:25:55 2011

转载:关于QVBoxLayout的问题~

从QVBoxLayout中移除某个部件时,该部件仍会存在于屏幕上。要想让移除的部件不再存在于屏幕上,则将它隐藏或者删除。

http://topic.csdn.net/u/20110512/08/829e242e-0476-4bee-a76f-c5d0cfe39cca.html

亮点:

调用
void QLayout::removeItem ( QLayoutItem * item )

来从layout中移除你添加的QSpacerItem这个item。如果不再需要,则 delete 掉它。

前一个问题与此类似。你要区分,你是不想让layout管理它,还是让它消失!!

转载:关于QVBoxLayout的问题~

从QVBoxLayout中移除某个部件时,该部件仍会存在于屏幕上。要想让移除的部件不再存在于屏幕上,则将它隐藏或者删除。

http://topic.csdn.net/u/20110512/08/829e242e-0476-4bee-a76f-c5d0cfe39cca.html

亮点:

调用
void QLayout::removeItem ( QLayoutItem * item )

来从layout中移除你添加的QSpacerItem这个item。如果不再需要,则 delete 掉它。

前一个问题与此类似。你要区分,你是不想让layout管理它,还是让它消失!!

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands