QtAwesome/QtAwesomeSample/main.cpp
2015-01-27 10:14:37 +01:00

29 lines
595 B
C++

/**
* MIT Licensed
*
* Copyright 2011-2015 - Reliable Bits Software by Blommers IT. All Rights Reserved.
* Author Rick Blommers
*/
#include "QtAwesome.h"
#include <QApplication>
#include <QMainWindow>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QMainWindow w;
QtAwesome* awesome = new QtAwesome(&w);
awesome->initFontAwesome();
// a simple beer button
QPushButton* beerButton = new QPushButton( awesome->icon( fa::beer ), "Cheers!" );
w.setCentralWidget( beerButton );
w.show();
return app.exec();
}