Results 1 to 5 of 5

Thread: Trying to use QWT plugins in Designer

  1. #1
    Join Date
    Dec 2009
    Location
    New Hampshire, USA
    Posts
    13
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Trying to use QWT plugins in Designer

    This is probably a problem experienced and solved a million times already, but I haven't been able to find a thread that has helped yet, so here I go:

    I am trying to use QWT for the first time. I have Qt 4.6.0, and QWT 5.2.0, on Windows XP. I downloaded QWT and built "qwt" and "qwt_designer_plugin" using Visual Studio 2008. I then copied qwt_designer_plugin5.dll .exp and .lib into my <QTDIR>\plugins\designer directory. (I don't know if the .exp is really needed). Upon opening Qt Designer, the QWT plugins are not available, and under Plugin Information, the qwt_designer_plugin5.dll is under the Faild Plugins with this error:

    Cannot load library C:/Qt/4.60/plugins/designer/qwt_designer_plugin5.dll: The specified module could not be found.

    I tried moving .dlls into the <QTDIR>\plugins\designer directory as needed to make the qwt_designer_plugin5.dll "happy" in dependency walker, but this didn't change anything.

    Any help you can give would be much appreciated!

  2. #2
    Join Date
    Dec 2009
    Location
    New Hampshire, USA
    Posts
    13
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trying to use QWT plugins in Designer

    Never mind, it's now working. I copied the qwt5.lib file to <QTDIR>\lib and the qwt5.dll file to <QTDIR>\bin. All is well.

  3. #3
    Join Date
    Dec 2009
    Location
    New Hampshire, USA
    Posts
    13
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trying to use QWT plugins in Designer

    OK, all is NOT well.

    In designer I was able to drag a qwtplot onto my application. Then, in Visual Studio I tried to build my application, and I am getting a linker error:

    4>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup

    I am building QWT5 and the plugin using the /SUBSYSTEM:CONSOLE switch, as I read on a thread here I am supposed to do. I also tried /SUBSYSTEM:WINDOWS; same result.

    Any ideas?

  4. #4
    Join Date
    Dec 2009
    Location
    New Hampshire, USA
    Posts
    13
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trying to use QWT plugins in Designer

    Hmmm... this is turning into an excercise in talking to myself as a progress from problem to problem.

    I no longer have the linker error, although the solution was not very satisfying. I simply removed the qwtPlot from my form file, and reverted to the latest working project file, confirmed that I could build, and added in the changes one at a time. This worked; I now have a qwtPlot in my form, and I can build just fine. Apparently there was something funky about my project settings, but I don't know what.

    However, things are still not good: I can't debug my app. When I try, the program just closes when I get to the line:

    qwtPlot = new QwtPlot(PageService);

    The app runs fine in Release mode. I suspect I need to build the qwt binaries in debug mode, so I am going to try that. I had thought that a release mode build would be fine, as long as I didn't want to step into the qwt code, but maybe I'm wrong about that. I will post another response to myself when I have some news.

  5. #5
    Join Date
    Dec 2009
    Location
    New Hampshire, USA
    Posts
    13
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trying to use QWT plugins in Designer

    Yup, that was it. I am now building and running my app with a qwtPlot that is just sitting there doing nothing. Everything is going to run smoothly from here, I can tell.

    I want to thank me for all my help, and I hope I can reciprocate someday.

Similar Threads

  1. Designer plugins in Qt Creator
    By stefan in forum Qt Tools
    Replies: 9
    Last Post: 8th March 2010, 06:51
  2. Threads in Designer plugins
    By hvengel in forum Qt Tools
    Replies: 2
    Last Post: 3rd January 2009, 20:19
  3. Replies: 15
    Last Post: 25th March 2007, 04:40
  4. Designer log messages while loading plugins
    By cocheci in forum Qt Tools
    Replies: 3
    Last Post: 18th May 2006, 15:50
  5. Arthur Plugins demos and designer
    By antonio.r.tome in forum Installation and Deployment
    Replies: 4
    Last Post: 21st March 2006, 15:01

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.