Results 1 to 6 of 6

Thread: Plugin compiling error

  1. #1
    Join Date
    Jul 2007
    Posts
    104
    Thanks
    22
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Plugin compiling error

    I created my own widgets and added to designer.I can use them easily on designer.But I got errors after that.After getting the header file of designer(ui_form.h) ,it includes my widget header as "myOwnWidget.h".But It cant find it.Although I carry my headers to same directory It gives errors.So:
    How can I use my own widgets?(Plugins)

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Plugin compiling error

    The header file must be found from paths listed in INCLUDEPATH.
    J-P Nurmi

  3. #3
    Join Date
    Jul 2007
    Posts
    104
    Thanks
    22
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Plugin compiling error

    Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\editorform\ui_programlist.h 27
    Error 27 error C2227: left of '->setMaximumSize' must point to class/struct/union/generic type c:\editorform\ui_programlist.h 53

    I added by I got errors like above ones.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Plugin compiling error

    Take a look at the generated ui_programlist.h. Does it include the header file of your custom widget as it's supposed to? Clearly the compiler is still unaware of such class.
    J-P Nurmi

  5. #5
    Join Date
    Jul 2007
    Posts
    104
    Thanks
    22
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Plugin compiling error

    Ok.It has created "mainForm.h" (my class) and included it.
    I tested the "alarmClock" plugin(widget) for testing.My ui header file included "alarmClock.h" but couldnt link it too.So is there an error for this type using in windows?

  6. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Plugin compiling error

    Well, you have to include the analog clock implementation to your application.
    J-P Nurmi

Similar Threads

  1. Installation on Fedora Core 4
    By jcr in forum Installation and Deployment
    Replies: 3
    Last Post: 29th January 2009, 01:34
  2. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  3. Qt-x11-commercial-src-4.2.0-snapshot-20060824 error
    By DevObject in forum Installation and Deployment
    Replies: 4
    Last Post: 24th August 2006, 23:31
  4. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52
  5. Am I the only one with "make" error ?
    By probine in forum Installation and Deployment
    Replies: 1
    Last Post: 13th February 2006, 12:54

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.