Results 1 to 3 of 3

Thread: i just copied stylesheet.cpp,.h,main.cpp & related files from trolltech.com & .......

  1. #1
    Join Date
    Nov 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows

    Default i just copied stylesheet.cpp,.h,main.cpp & related files from trolltech.com & .......

    I just copied stylesheet.cpp,.h,main.cpp & related files from trolltech.com & pasted in a folder named stylesheet & typed qmake -project on command prompt.Then typed qmake stylesheet.pro & then make.It gave error as follows:

    In file included from main.cpp:46:
    mainwindow.h:49:28: ui_mainwindow.h: No such file or directory
    In file included from main.cpp:46:
    mainwindow.h:66: error: `Ui' has not been declared
    mainwindow.h:66: error: field `ui' has incomplete type
    mainwindow.h:69:8: warning: no newline at end of file
    main.cpp:56:3: warning: no newline at end of file
    mingw32-make[1]: *** [tmp/obj/debug_shared/main.o] Error 1
    mingw32-make[1]: Leaving directory `D:/Qt/4.4.3/examples/designer/stylesheet'
    mingw32-make: *** [debug-all] Error 2

    can somebody please help me

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    6
    Thanked 163 Times in 151 Posts

    Default Re: i just copied stylesheet.cpp,.h,main.cpp & related files from trolltech.com & ...

    seems like you forgot to copy mainwindow.ui

  3. #3
    Join Date
    Nov 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: i just copied stylesheet.cpp,.h,main.cpp & related files from trolltech.com & ...

    thanks for the help.

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.