Results 1 to 7 of 7

Thread: custom signals vs newbie

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: custom signals vs newbie

    I'll try to explain what the problem is and maybe you'll find a solution yourself without showing us all the code

    The compiler thinks void result(...) is a declaration of a variable and not a function. It might be because there is something wrong with "EViewport" or because the compiler is confused by some earlier error (that's why I asked about viewports.h). You can try removing the signals: keyword and check if the problem persists.

  2. The following user says thank you to wysota for this useful post:

    Raccoon29 (21st April 2008)

  3. #2
    Join Date
    Sep 2007
    Location
    Sant'Elpidio a Mare, Italy
    Posts
    194
    Thanks
    54
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: custom signals vs newbie

    Ok, fixed, just for change you were right again

    No, signals: cut out made no difference.
    The problem was that in viewports.h I included manager.h (the error file), but the definition of EViewport came after the manager inclusion, so:
    Qt Code:
    1. // viewports.h
    2. #include "manager.h" // manager.h still doesn't know EViewport, so raises error
    3. enum EViewport{
    4. [...]
    5. }
    To copy to clipboard, switch view to plain text mode 

    PS: the tiny peluche bear will be delivered at your home, just leave your address to the operator
    Thanks again.
    --
    raccoon29

    "La mia vita finirà quando non vedrò più la gente ridere...non necessariamente alle mie battute "

Similar Threads

  1. Custom signals?
    By godot in forum Newbie
    Replies: 7
    Last Post: 14th January 2008, 19:13

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.