Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src_gui_widgets_qabstractbutton.cpp

//! [0]
QPushButton *button = new QPushButton(tr("Ro&ck && Roll"), this);
//! [0]


//! [1]
button->setIcon(QIcon(":/images/print.png"));
button->setShortcut(tr("Alt+F7"));
//! [1]


//! [2]
void MyWidget::reactToToggle(bool checked)
{
   if (checked) {
      // Examine the new button states.
      ...
   }
}
//! [2]

Generated by  Doxygen 1.6.0   Back to index