Results 1 to 6 of 6

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    55
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

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

    I'm getting this compile-time error pointing to the widget class that I inherited from QWidget. I only recycled the previous code I was using I don't know why I'm getting this error.

    In the file included from main.cpp:2:
    webcam.h:13: error: expected class-name before "{" token

    Attached are the files main.cpp and webcam.h
    Attached Files Attached Files

Similar Threads

  1. Replies: 3
    Last Post: 26th April 2009, 17:54
  2. error: expected class-name before '{' token
    By Aresti in forum Qt Programming
    Replies: 1
    Last Post: 12th November 2008, 20:00
  3. Replies: 3
    Last Post: 10th November 2008, 16:14
  4. Replies: 4
    Last Post: 22nd February 2008, 19:08
  5. Replies: 2
    Last Post: 30th January 2008, 20:06

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.