//进行水平布局 m_userLayout->addSpacing(150); //添加弹簧 m_userLayout->addWidget(m_userLabel); m_userLayout->addWidget(m_userLinEdit); m_userLayout->addSpacing(150);
效果图:
标签:150,addSpacing,QT,弹簧,添加,userLayout From: https://www.cnblogs.com/RedWetPlace/p/17101555.html