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')Originally Posted by larsli
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')Originally Posted by larsli
Save yourself some pain. Learn C++ before learning Qt.
Maybe you can just add the DLL_EXPORT macro to the base class?
Software Engineer
He can, but then it will disappear whenever he changes his ui.Originally Posted by gfunk
Save yourself some pain. Learn C++ before learning Qt.
Oh, you're right, haha.
I can't find the object viewer tree, is this part of the object inspector?
Software Engineer
Yes, sorry Object Inspector. I don't have a copy of Qt3 Designer to hand.Originally Posted by gfunk
Save yourself some pain. Learn C++ before learning Qt.
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
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.
gfunk (13th July 2006)
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!![]()
Bookmarks