QVBox在Qt 3.0的是这样子的:

 

/****************************************************************
**
** Qt教程一 - 3
**
***************************************************************
*/

#include
<qapplication.h>
#include
<qpushbutton.h>
#include
<qfont.h>
#include
<qvbox.h>

int main( int argc, char **argv )
{
QApplication a( argc, argv );

QVBox box;
box.resize(
200, 120 );

QPushButton quit(
"Quit", &box );
quit.setFont( QFont(
"Times", 18, QFont::Bold ) );

QObject::connect(
&quit, SIGNAL(clicked()), &a, SLOT(quit()) );

a.setMainWidget(
&box );
box.show();

return a.exec();
}

相关文章:

  • 2022-01-10
  • 2021-08-28
  • 2022-12-23
  • 2021-06-20
  • 2021-10-11
  • 2021-11-22
  • 2022-12-23
  • 2021-10-21
猜你喜欢
  • 2021-05-20
  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
相关资源
相似解决方案