[Qt-interest] Warning: No relevant classes found. No output generated.

M. Bashir Al-Noimi mbnoimi at gmx.com
Sat Mar 20 15:41:40 CET 2010


Thanks,

I fixed this issue by inheriting QObject in my class.

--snippet--

class YAffixer :public  QObject



On 20/03/2010 04:25 م, Diego Iastrubni wrote:
> No QObjects here... that's all. Remove this *.h from your *.pro.
>
>
> On Sat, Mar 20, 2010 at 4:22 PM, M. Bashir Al-Noimi <mbnoimi at gmx.com 
> <mailto:mbnoimi at gmx.com>> wrote:
>
>     Hi folks,
>
>     After creating a new I got warning message tell me:
>
>     yaffixer.h:0: Warning: No relevant classes found. No output
>     generated.
>
>     For that my class couldn't return any value, *how I can fix this
>     issue?*
>
>
>     --snippet--
>
>     #ifndef  YAFFIXER_H
>     #define  YAFFIXER_H
>
>     #include  <QObject>
>     #include  <QFile>
>     #include  <QStringList>
>     #include  <QVariant>
>
>     class  YAffixer
>     {
>     public:
>          YAffixer(QStringList patterns, QStringList preffixes, QStringList suffixes);
>          YAffixer(QString patternsFilePath, QString preffixesFilePath, QString suffixesFilePath);
>          QStringList patterns();
>          QStringList preffixes();
>          QStringList suffixes();
>          QStringList calculate();
>          void  saveToFile(QString filePath);
>     private:
>          QStringList pat, pfix, sfix, res;
>     };
>
>     #endif  // YAFFIXER_H
>
>
>     -- 
>     Best Regards
>     Muhammad Bashir Al-Noimi
>     My Blog:http://mbnoimi.net
>          
>
>
>     _______________________________________________
>     Qt-interest mailing list
>     Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
>     http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>

-- 
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100320/0dc37154/attachment.html 


More information about the Qt-interest-old mailing list