Results 1 to 5 of 5

Thread: I dont see my custom widgets as a plugin ...

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default I dont see my custom widgets as a plugin ...

    The files dll and lib_####.a are generated at build-desktop folder.
    But I dont see my custom widgets, and I copy the .a and dll files by hand to qt\plugins\designer
    My pro file is the next :

    Qt Code:
    1. QT += core gui
    2.  
    3. TEMPLATE = lib
    4.  
    5. CONFIG += designer \
    6. plugin \
    7. release \
    8. warn_on \
    9.  
    10. TARGET = gui_plugins
    11.  
    12. target.path += $$[QT_INSTALL_PLUGINS]/designer
    13. INSTALLS += target
    14.  
    15. INCLUDEPATH += ../AnalogWidgets/analogwidgets/analogwidgets \
    16. ../AnalogWidgets/analogwidgets/code
    17.  
    18. HEADERS += \
    19. ../AnalogWidgets/analogwidgets/analogwidgets/wallclock.h \
    20. ../AnalogWidgets/analogwidgets/analogwidgets/led.h \
    21. ../AnalogWidgets/analogwidgets/plugins/led_plugin.h \
    22. ../AnalogWidgets/analogwidgets/plugins/wallclock_plugin.h \
    23. ../AnalogWidgets/analogwidgets/analogwidgets/widgetwithbackground.h
    24.  
    25. SOURCES += \
    26. ../AnalogWidgets/analogwidgets/code/wallclock.cpp \
    27. ../AnalogWidgets/analogwidgets/code/widgetwithbackground.cpp \
    28. ../AnalogWidgets/analogwidgets/code/led.cpp \
    29. ../AnalogWidgets/analogwidgets/plugins/wallclock_plugin.cpp \
    30. ../AnalogWidgets/analogwidgets/plugins/led_plugin.cpp
    31.  
    32. FORMS +=
    To copy to clipboard, switch view to plain text mode 

    Any help ?

  2. #2
    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: I dont see my custom widgets as a plugin ...

    You shouldn't be getting any .a files for plugins. You must have done something wrong.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I dont see my custom widgets as a plugin ...

    This custom widgets are part of the analogwidgets from 3electrons (it works fine If I use it using promote approach)
    I think there is something I do bad at the .pro file.
    But I follow the rules...
    What's happen ?
    Please help, I have spent almost a week to learn custom widgets and plugins.....

  4. #4
    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: I dont see my custom widgets as a plugin ...

    There is a tutorial on writing a custom widget plugin in the documentation.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I dont see my custom widgets as a plugin ...

    I'm going to read it again.
    Thanks

Similar Threads

  1. Replies: 1
    Last Post: 18th July 2012, 09:59
  2. Why dont see a Custom Widget Promoted ?
    By tonnot in forum Newbie
    Replies: 1
    Last Post: 27th October 2010, 13:24
  3. Replies: 0
    Last Post: 15th May 2009, 15:38
  4. Testing a custom Plugin
    By maluta in forum Qt Programming
    Replies: 5
    Last Post: 31st October 2006, 15:09
  5. Custom plugin for a layout
    By cocheci in forum Qt Tools
    Replies: 2
    Last Post: 12th June 2006, 18:36

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.