Qt Designer: Code Generation and GUI Design
By Dave Berton, July 01, 2004
The Designer IDE, which comes with the latest Qt C++ library, has filled a gaping hole in the world of application development with Qt-namely the lack of a visual IDE.
July, 2004: Qt Designer: Code Generation and GUI Design
Listing 3
QHBox h;
QLabel* l = new QLabel( &h );
QListBox* lb = new QListBox( &h );
lb->insertItem( "foo" );
lb->insertItem( "bar" );
lb->insertItem( "baz" );
QObject::connect( lb, SIGNAL( highlighted(const QString&) ),
l, SLOT( setText(const QString&) ) );