Results 1 to 14 of 14

Thread: error: ISO C++ forbids declaration of ‘mainScreenDLG’ with no type

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Join Date
    Jul 2010
    Posts
    53
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: error: ISO C++ forbids declaration of ‘mainScreenDLG’ with no type

    read carefully:
    declaration of ‘mainScreenDLG’ with no type
    only constructors and destructors has no return type, you just need to add void (or other return type) before mainScreenDLG:

    Qt Code:
    1. void mainScreenDLG(QDialog *parent = 0);
    To copy to clipboard, switch view to plain text mode 

    Fine, but still, delete the "::", they do not belong to that place.
    they do! they tell to compiler namespace where QDialog declared. in this case the do nothing beacuse QDialog in global scope.
    Last edited by GreenScape; 27th July 2010 at 08:36.

Similar Threads

  1. Replies: 12
    Last Post: 29th April 2010, 13:22
  2. Error::defined after prior declaration as dllimport:
    By hasnatzaidi in forum Qt Programming
    Replies: 2
    Last Post: 12th June 2009, 01:37
  3. error: forward declaration of 'struct QPushButton'
    By prykHetQuo in forum Qt Programming
    Replies: 2
    Last Post: 23rd January 2009, 23:20
  4. forbids declaration of QHash with no type
    By nina1983 in forum Qt Programming
    Replies: 4
    Last Post: 16th July 2008, 13:05
  5. Forward Class declaration ERROR
    By nleverin in forum Qt Programming
    Replies: 1
    Last Post: 30th July 2007, 08:35

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.