QPainter painter(this); for (int i = 0; i < text.size(); ++i) { int index = (step + i) % 16; color.setHsv((15 - index) * 16, 255, 191); painter.setPen(color); painter.drawText(x, y - ((sineTable[index] * metrics.height()) / 400), QString(text[i])); x += metrics.width(text[i]); }
C:\TestQt\runline>makemingw32-make -f Makefile.Releasemingw32-make[1]: Entering directory `C:/TestQt/runline'g++ -c -O2 -O2 -frtti -Wall -fno-exceptions -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"C:/Qt/4.1.1/include/QtCore" -I"C:/Qt/4.1.1/include/QtGui" -I"C:/Qt/4.1.1/include"-I"." -I"C:/Qt/4.1.1/include/ActiveQt" -I"release" -I"." -I"C:/Qt/4.1.1/mkspecs/win32-g++" -o release\main.o main.cppmain.cpp: In function `int qMain(int, char**)':main.cpp:10: error: `trUtf8' undeclared (first use this function)main.cpp:10: error: (Each undeclared identifier is reported only once for each function it appears in.)mingw32-make[1]: *** [release\main.o] Error 1mingw32-make[1]: Leaving directory `C:/TestQt/runline'mingw32-make: *** [release] Error 2C:\TestQt\runline>