Results 1 to 5 of 5

Thread: forbids declaration of QHash with no type

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2008
    Posts
    26
    Qt products
    Qt4
    Platforms
    Windows

    Red face forbids declaration of QHash with no type

    Dear,

    I'm trying to solve this error... I cannot understand what is going wrong... please help me to solve it ! Probably it is only a stupid syntatical error but I cannot see it...

    Here is the code:

    Qt Code:
    1. #ifndef _STA_SCENARIO_MANOEUVREPLAN_H_
    2. #define _STA_SCENARIO_MANOEUVREPLAN_H_
    3.  
    4. #include "scenarioobject.h"
    5.  
    6. enum StaManoeuvreType
    7. {
    8. STA_MANOEUVRE_DURATION = 1000,
    9. STA_MANOEUVRE_DELTAV = 1001,
    10. STA_MANOEUVRE_V_POSITION = 1002,
    11. STA_MANOEUVRE_R_POSITION = 1003,
    12. STA_MANOEUVRE_V_R_POSITION = 1004,
    13. STA_MANOEUVRE_V_R_DURATION = 1005
    14. };
    15.  
    16. class ScenarioManoeuvre;
    17.  
    18. class ScenarioManoeuvrePlan : public ScenarioObject
    19. {
    20. public:
    21. ScenarioManoeuvrePlan();
    22. ~ScenarioManoeuvrePlan();
    23.  
    24. const QList<ScenarioManoeuvre*>& manoeuvres() const { return m_manoeuvres; }
    25. void setName(QString name){m_name=name;}
    26. void addManoeuvre(ScenarioManoeuvre* manoeuvre);
    27.  
    28. QString name()const {return m_name;}
    29. QList<ScenarioManoeuvre*> manoeuvresList() const{return m_manoeuvres;}
    30. QHash<QString, StaManoeuvreType>* typeMap()const {return hash;}
    31. QHash<QString, QString>* nameMap()const {return hashName;}
    32. QStringList inputsName()const {return inputs;}
    33.  
    34. virtual QTreeWidgetItem* createItemSelf(QTreeWidgetItem* parent);
    35. virtual void createItemContents(QTreeWidgetItem* item);
    36.  
    37. private:
    38. QString m_name;
    39. QList<ScenarioManoeuvre*> m_manoeuvres;
    40. QHash<QString, StaManoeuvreType>* hash;
    41. QHash<QString, QString>* hashName;
    42. QStringList inputs;
    43. };
    44.  
    45. #endif // _STA_SCENARIO_MANOEUVREPLAN_H_
    To copy to clipboard, switch view to plain text mode 
    Thank a lot

    Last edited by jpn; 21st July 2008 at 17:24. Reason: missing [code] tags

Similar Threads

  1. Installation on Fedora Core 4
    By jcr in forum Installation and Deployment
    Replies: 3
    Last Post: 29th January 2009, 01:34
  2. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  3. problem with forward declaration
    By MarkoSan in forum General Programming
    Replies: 14
    Last Post: 6th January 2008, 21:45
  4. dummy question(Error)
    By Masih in forum Qt Programming
    Replies: 12
    Last Post: 19th July 2007, 23:38
  5. Compile Errors
    By luffy27 in forum Qt Programming
    Replies: 3
    Last Post: 4th November 2006, 05:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.