Results 1 to 2 of 2

Thread: custom widget plugin example - HOWTO on Windows with QtCreator

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default custom widget plugin example - HOWTO on Windows with QtCreator

    hi,

    I have tried a lot and thought a lot before posting this thread, but I'm still having troubles creating a custom widget plugin for QtCreator/Designer and I would be very thankful if you could help me out here. I had a look in the forum and also searched around the web, without finding really helpful information.

    I'm using Windows7 and QtCreator 2.0.1.

    I had a long look at the examples found at : http://doc.qt.nokia.com/4.6/designer...m-widgets.html and http://doc.qt.nokia.com/4.6/designer...getplugin.html, still they leave the question to me, how to move on from there.
    I also tried out the custom widget assistant which comes along with QtCreator, but without success.

    Sorry, if this question sounds stupid to you (I'm quite new in the Qt business), but how do I compile the custom widget code?

    I mean, do I just compile it with QtCreator? or from the command prompt with qmake and make? (My QtCreator which comes with the Nokia Qt SDK only has a command prompt for Symbian, I don't know if there's supposed to be another one...).
    I know that QtCreator basically only executes qmake and make as well (with a lot of parrameters.


    Maybe somebody could give me a simple, yet comprehensive, step by step instruction how to create, compile and use a custom widget plugin. Like do you use QtCreator at all when you create the custom widget plugin and so on. I would really appreciate that.
    Unfortunately the official documentation is somewhat confusing, or not complete enough, imo.



    Thanks a lot.

  2. #2
    Join Date
    Nov 2010
    Posts
    57
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: custom widget plugin example - HOWTO on Windows with QtCreator

    I assume you have created the code.

    You will need to compile it in the same version as the designer you are using.
    You will also need to place the dll in qt creater's bin/designer directory.

    Once it is in the correct directory open the designer and a form ui. Then: Tools -> Form Editor -> About Qt Designer plugins...
    In the popup window you will see if it loaded or if there was an error. And the error should explain what you need to do.

    I think for windows designer you get as the standard, you need to compile it with msvc compiler in release... But check the error to make sure.

Similar Threads

  1. Replies: 2
    Last Post: 19th January 2011, 20:02
  2. Replies: 2
    Last Post: 25th August 2010, 10:25
  3. MYSQL plugin seems to be built properly, but not loaded in QtCreator [Windows]
    By GabrielGray in forum Installation and Deployment
    Replies: 1
    Last Post: 29th June 2010, 20:38
  4. Replies: 1
    Last Post: 6th May 2010, 11:09
  5. Custom Widget Plugin
    By alisami in forum Qt Programming
    Replies: 2
    Last Post: 16th March 2009, 15:33

Tags for this Thread

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.