Results 1 to 2 of 2

Thread: GradientRendererEx Problem

  1. #1
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default GradientRendererEx Problem

    Dear Friends
    Using QT designer I have created a GradientRendererEx and a QSlider(vertical) on my form "gradientDisplay.ui".
    Now when I am trying to create its associated header using
    uic ./rc/gradientDisplay.ui > ./include/gradientMeshContours.h
    then in the header file i can QT is adding "gradients.h"
    now when I am generating the dialog and trying to compile the program
    it gives an error as below
    ///////////////
    In file included from src/../include/gradientMeshContoursDlg.h:5,
    from src/../include/graphicsview_mesh.h:25,
    from src/../include/mainwindow.h:33,
    from src/../include/graphicsscene.h:19,
    from src/../include/graphicsview.h:19,
    from src/../include/geometry.h:25,
    from src/../include/checksmoothness.h:26,
    from src/checksmoothness.cpp:14:
    src/../include/gradientMeshContours.h:20:23: gradients.h: No such file or directory
    In file included from src/../include/gradientMeshContoursDlg.h:5,
    from src/../include/graphicsview_mesh.h:25,
    from src/../include/mainwindow.h:33,
    from src/../include/graphicsscene.h:19,
    from src/../include/graphicsview.h:19,
    from src/../include/geometry.h:25,
    from src/../include/checksmoothness.h:26,
    from src/checksmoothness.cpp:14:
    src/../include/gradientMeshContours.h:27: error: ISO C++ forbids declaration of `GradientRendererEx' with no type
    src/../include/gradientMeshContours.h:27: error: expected `;' before '*' token
    src/../include/gradientMeshContours.h: In member function `void Ui_GradientDisplay::setupUi(QWidget*)':
    src/../include/gradientMeshContours.h:35: error: `gradientRendererEx' was not declared in this scope
    src/../include/gradientMeshContours.h:35: error: `GradientRendererEx' has not been declared
    src/checksmoothness.cpp: In member function `void CheckSmoothness:k()':
    src/checksmoothness.cpp:389: warning: unused variable 'n'
    make: *** [obj/checksmoothness.o] Error 1
    //////////////

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    4
    Thanked 140 Times in 132 Posts

    Default Re: GradientRendererEx Problem

    Using QT designer I have created a GradientRendererEx and a QSlider(vertical) on my form "gradientDisplay.ui".
    What is GradientRendererEx? Custom Designer widget plugin?
    uic ./rc/gradientDisplay.ui > ./include/gradientMeshContours.h
    then in the header file i can QT is adding "gradients.h"
    It is hard to understand that but I assume you are editing this auto generated header file which is very bad idea because it is... auto generated! so all your changes are probably lost at calling make and your errors looks like it is the case.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

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.