|
|
От: |
DmitryMV
|
|
| Дата: | 25.09.07 16:54 | ||
| Оценка: | |||
А>#include <QApplication>
А> #include <QPushButton>
А> #include <QMacStyle>
А> int main(int argc, char *argv[])
А> {
А> QApplication app(argc, argv);
А> QApplication::setStyle(new QMacStyle);
А> QPushButton hello("Hello world!");
А> hello.resize(100, 30);
А> hello.show();
А> return app.exec();
А> }
А>А>$ qmake-qt4 -project && qmake-qt4 && make
А>g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o main.o main.cc
А>main.cc:3:22: error: QMacStyle: No such file or directory
А>main.cc:13:3: warning: no newline at end of file
А>main.cc: In function 'int main(int, char**)':
А>main.cc:8: error: expected type-specifier before 'QMacStyle'
А>main.cc:8: error: expected `)' before 'QMacStyle'
А>main.cc:8: error: no matching function for call to 'QApplication::setStyle(int*)'
А>/usr/include/qt4/QtGui/qapplication.h:99: note: candidates are: static void QApplication::setStyle(QStyle*)
А>/usr/include/qt4/QtGui/qapplication.h:100: note: static QStyle* QApplication::setStyle(const QString&)
А>make: *** [main.o] Ошибка 1
А>Warning: This style is only available on Mac OS X because it relies on the HITheme APIs.