Results 1 to 2 of 2

Thread: error: expected class-name before '{' token

  1. #1

    Default error: expected class-name before '{' token

    Hi I have that error, i cant figer out what is it

    #include "figuras.h"

    class barra : public figuras {
    protected:
    int velocidad;

    public:
    barra();
    ~barra();
    int barraaltu(wxWindow *a) { return a->GetClientSize().GetWidth() / 10; }
    void dibujar(wxPaintDC& dc, int x, int y,wxWindow *a);
    int barralargo(wxWindow *a) { return a->GetClientSize().GetHeight() / 22;}
    };

  2. #2
    Join Date
    Nov 2008
    Posts
    183
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: error: expected class-name before '{' token

    you have a typo in figuras.h and the class name doesn't match what you are trying to inherit from.

Similar Threads

  1. class QHBoxLayout
    By csvivek in forum Installation and Deployment
    Replies: 2
    Last Post: 10th April 2008, 07:57
  2. How to use Signal through direct connection
    By santosh.kumar in forum Qt Programming
    Replies: 1
    Last Post: 14th December 2007, 07:07
  3. Need help integrating sigc++ with a KDE3/Qt3 app
    By Valheru in forum Qt Programming
    Replies: 1
    Last Post: 17th November 2007, 15:39
  4. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  5. Replies: 2
    Last Post: 4th May 2006, 19:17

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.