麻烦各位帮帮忙啊~~~~~
我用一个QHBoxLayout类的HLayout添加两个控件之后,想把HBoxLayout利用this->setLayout(&HBoxLayout)命令添加到主窗体中,但是运行时出现这个错误:
QWidget::setLayout:
Attempting to set QLayout "" on MainWindow "MainWindowClass", which already has a layout
无法实现HBoxLayout的功能,要怎么办?
[ 此帖被whisper215在2009-03-05 20:34重新编辑 ]