Results 1 to 4 of 4

Thread: Custom Widgets

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows

    Default Custom Widgets

    I created several custom widgets for QT 4.2.3 integrated with Visual Studio 2005.

    I could use widgets in QT designer as well as VS 2K5

    Just upgraded to QT 4.5.0 - still using VS 2K5
    Now I get this error for each of my custom widgets:
    The plugin 'C:/Program Files/Nokia/Qt VS Integration/plugins/designer/RS_DualQlistWidget.dll' uses incompatible Qt library. (4.5.0) [release]

    If I use QT Creator, I get a bunch of link errors (and am not sure how to resolve them).

    I want to use QT 4.5.0 + VS 2K5 with my custom widgets...

    Any Thoughts?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Custom Widgets

    Did you try to rebuild your plugins with Qt4.5.0?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Dec 2009
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows

    Default Re: Custom Widgets

    Sorry - yes I did.

    In fact:
    1) I removed all files from the project except Source code + Header Files and *.pro file.
    2) Ran qmake on pro file to generate a vcproj file.
    3) Compiled against QT 4.5.0

    Widgets show up in Designer just fine...
    Widgets do not get loaded in VS 2k5 QT toolbox - error message is displayed

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Custom Widgets

    Do you have both Qt versions still installed on your system?
    It could be that MSVS is still getting the old version designer.
    Make sure the system variables are set correctly (QTDIR)
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 0
    Last Post: 15th May 2009, 15:38
  2. Replies: 0
    Last Post: 11th April 2009, 12:07
  3. Custom Widgets and layout managers...
    By TemporalBeing in forum Qt Programming
    Replies: 6
    Last Post: 4th March 2009, 13:48
  4. Replies: 2
    Last Post: 16th May 2008, 14:39
  5. picking geometry in qt custom widgets
    By notsonerdysunny in forum Qt Programming
    Replies: 2
    Last Post: 17th July 2007, 23:01

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.