Results 1 to 12 of 12

Thread: Problems using DLL

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Mountain View, CA
    Posts
    279
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 42 Times in 37 Posts

    Default Re: Problems using DLL

    Quote Originally Posted by larsli
    Thanks for the answer, but the header file is moc'ed. It's in the Generated MOC files in the Visual Studio solution explorer tree.
    In Designer, ensure that the export macro is added to your generated base class, by putting it in the 'macros' section of the object viewer tree (I can't remember right now, but it's either called 'macros' or 'defines')
    Save yourself some pain. Learn C++ before learning Qt.

  2. #2
    Join Date
    Apr 2006
    Location
    San Francisco, CA
    Posts
    186
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    55
    Thanked 12 Times in 11 Posts

    Default Re: Problems using DLL

    Maybe you can just add the DLL_EXPORT macro to the base class?
    Software Engineer



  3. #3
    Join Date
    Jan 2006
    Location
    Mountain View, CA
    Posts
    279
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 42 Times in 37 Posts

    Default Re: Problems using DLL

    Quote Originally Posted by gfunk
    Maybe you can just add the DLL_EXPORT macro to the base class?
    He can, but then it will disappear whenever he changes his ui.
    Save yourself some pain. Learn C++ before learning Qt.

  4. #4
    Join Date
    Apr 2006
    Location
    San Francisco, CA
    Posts
    186
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    55
    Thanked 12 Times in 11 Posts

    Default Re: Problems using DLL

    Oh, you're right, haha.

    I can't find the object viewer tree, is this part of the object inspector?
    Software Engineer



  5. #5
    Join Date
    Jan 2006
    Location
    Mountain View, CA
    Posts
    279
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 42 Times in 37 Posts

    Default Re: Problems using DLL

    Quote Originally Posted by gfunk
    Oh, you're right, haha.

    I can't find the object viewer tree, is this part of the object inspector?
    Yes, sorry Object Inspector. I don't have a copy of Qt3 Designer to hand.
    Save yourself some pain. Learn C++ before learning Qt.

  6. #6
    Join Date
    Apr 2006
    Location
    San Francisco, CA
    Posts
    186
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    55
    Thanked 12 Times in 11 Posts

    Default Re: Problems using DLL

    Where is the macros or defines section in Object Inspector? Or is this just in Qt3? And if yes, is there a Qt4 equivalent? (I'm using Qt4, Windows version, myself)

    Thanks,
    Software Engineer



  7. #7
    Join Date
    Jan 2006
    Location
    Mountain View, CA
    Posts
    279
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 42 Times in 37 Posts

    Default Re: Problems using DLL

    Thre's nothing in Qt4 (and you don't need it). There is no generated baseclass as such in Qt4*

    * You can subclass the ui class in Qt4, but none of the symbols need to be eported.
    Save yourself some pain. Learn C++ before learning Qt.

  8. The following user says thank you to Chicken Blood Machine for this useful post:

    gfunk (13th July 2006)

  9. #8
    Join Date
    Mar 2006
    Posts
    8
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problems using DLL

    Thanks for all the answers. There is a export macro property in Qt3 Designer. It's a sub property of the name property. Well hidden!

Similar Threads

  1. Problems building mysql plugin for Qt 4.1.2 on windows XP
    By Philip_Anselmo in forum Installation and Deployment
    Replies: 3
    Last Post: 17th May 2006, 16:38
  2. Canvas problems
    By Tommytrojan in forum Qt Programming
    Replies: 22
    Last Post: 9th May 2006, 17:46
  3. QT4 Plugins - problems, problems
    By NormanDunbar in forum Qt Programming
    Replies: 6
    Last Post: 9th May 2006, 16:39
  4. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 11:28
  5. problems with Opengl
    By SlawQ in forum Qt Programming
    Replies: 4
    Last Post: 12th February 2006, 23:49

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.