]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/example/qt/qt4/moccable-cpp/main.cpp
1 // Copyright Vladimir Prus 2005.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt
4 // or copy at http://www.boost.org/LICENSE_1_0.txt)
7 #include <qpushbutton.h>
8 #include <qapplication.h>
12 class My_widget
: public QWidget
16 My_widget() : QWidget()
18 QPushButton
* b
= new QPushButton("Push me", this);
20 connect(b
, SIGNAL(clicked()), this, SLOT(theSlot()));
26 std::cout
<< "Clicked\n";
31 int main(int ac
, char* av
[])
33 QApplication
app(ac
, av
);