]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/example/qt/qt3/moccable-cpp/main.cpp
1 // Copyright Vladimir Prus 2005.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE.txt
4 // or copy at https://www.bfgroup.xyz/b2/LICENSE.txt)
8 #include <qpushbutton.h>
9 #include <qapplication.h>
13 class My_widget
: public QWidget
17 My_widget() : QWidget()
19 QPushButton
* b
= new QPushButton("Push me", this);
21 connect(b
, SIGNAL(clicked()), this, SLOT(theSlot()));
27 std::cout
<< "Clicked\n";
32 int main(int ac
, char* av
[])
34 QApplication
app(ac
, av
);
37 app
.setMainWidget(&mw
);