HEADERS = mainwindow.hSOURCES = main.cpp \ mainwindow.cppRESOURCES = application.qrc# installtarget.path = D:\Qt\4.1.3\examples\mainwindows\applicationsources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS application.pro imagessources.path = D:\Qt\4.1.3\examples\mainwindows\applicationINSTALLS += target sources
<!DOCTYPE RCC><RCC version="1.0"><qresource> <file>images/copy.png</file> <file>images/cut.png</file> <file>images/new.png</file> <file>images/open.png</file> <file>images/paste.png</file> <file>images/save.png</file></qresource></RCC>
FORMS = mainwindow.ui
#ifndef _CALENDAR_H_#define _CALENDAR_H_#include <QtGui>#include "ui_calendar.h"class Calendar : public QDialog, private Ui_Calendar{ Q_OBJECT public: Calendar(QWidget * parent = 0); virtual ~Calendar(); bool selectDate(QDate & date); protected: bool eventFilter(QObject *obj, QEvent *event); private: QDate currDate; void showMonth(); private slots: void setDay(); void changeMY( QDate d );};#endif // _CALENDAR_H_