is anybody know how to use Qt to write cross-platform class library(not a stand-alone program), to be called by other Qt program?

that is, i can use QObject like QString inside the functions in my library, and still can be identify by other Qt program once it has been loaded by QLibrary