next up previous contents index
Next: QComboBox Up: Programming Previous: Programming   Contents   Index


QPushButton

QPushButtons are inserted in Qt Designer. Your can insert an icon in the button within your code.

Figure 6.1: Set an icon to QPushButton
pvSetPixmap(p,PushButton1,"ok.bmp");

Figure 6.2: Respond to button events
case BUTTON_EVENT:
  if(i == pushButtonXYZ) do_what_you_want();
  ...
  break;



Rainer Lehrig 2004-02-17