Linux/Programming
QPushButton 예제
1. Push Button (QWidget/QButton/QPushButton) 2. Header : 3. Event : pressed(), release(), clicked(), toggled(bool)… 4. Example : PbEx.cpp #include #include #inlcude class PbEx:public QWidget { public: PbEx(); private: QPushButton *p; }; PbEx::PbEx() { resize(100,80); p=new QPushButton(“Push Button1”,this) p->setGeometry(10,10,40,20); } int main(int argc, char** argv) { QApplication app(argc,argv..
2008. 11. 15. 19:47
최근댓글