Results 1 to 4 of 4

Thread: Multilibrary project

  1. #1
    Join Date
    Oct 2009
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Question Multilibrary project

    I have a confusing question: How to build a multilibrary (modular) project? Can I build something similar like C# Windows Forms Application ? For example:
    Qt Code:
    1. Project.exe
    2. Project.Core.dll
    3. Project.Services.dll
    4. Project.Resources.dll
    5. ...
    To copy to clipboard, switch view to plain text mode 
    I don't think that plug-ins will be the best solution or yes? I have tried this:
    Qt Code:
    1. // Project.exe
    2. int main(...)
    3. {
    4. // Load Core library and get main window instance
    5. }
    To copy to clipboard, switch view to plain text mode 
    But this example won't work because it won't draw any window. I very thanks for all responses or solutions.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Multilibrary project

    A general answer to a general question - yes, it is possible. And I think you already answered your own question - use multiple libraries. They don't have to be plugins, just regular libraries.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2009
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Multilibrary project

    Thanks. Where do you think, to use QApplication Class ? In Project.exe or in Project.Core.dll ??

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Multilibrary project

    It doesn't make any difference. You will link with the library in the main executable anyway.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. How to add a Hot Key to a Qt Project?
    By Bong.Da.City in forum Newbie
    Replies: 1
    Last Post: 6th September 2010, 20:26
  2. new project
    By rk0747 in forum Qt Programming
    Replies: 5
    Last Post: 17th February 2010, 08:53
  3. Replies: 1
    Last Post: 3rd December 2009, 23:34
  4. Qt Project How to ?
    By sunil.thaha in forum Qt Programming
    Replies: 4
    Last Post: 9th August 2007, 10:56
  5. Project generation on linux from QT Project
    By darpan in forum Qt Programming
    Replies: 6
    Last Post: 11th December 2006, 09:43

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.