Sigil is a free, open source, multi-platform ebook editor that uses Qt (and QtWebKit). It is designed to edit books in ePub format (both ePub 2 and ePub 3).