Results 1 to 2 of 2

Thread: Writing libraries for applications

  1. #1
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    112
    Thanks
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Writing libraries for applications

    I've recently posted that I had some problems with my firsts library that I'd written for my application so as I could have better possibilities to support it.

    I have noticed that I can create QObject derived objects from my application (declarations along with definitions are held in my library) because debugger noticed me that this was impossible.

    I know now that some things are impossible, some should be avoided etc., but I need some good source of knowledge (tutorials) to work with, to learn from, so if you were so kind, it would be absolutely helpful...
    My schedule makes my cry
    My works makes my laugh
    My life makes... oh...no....

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Writing libraries for applications

    I have noticed that I can create QObject derived objects from my application
    I guess you meant can't and not can.
    The only restriction is that you can't multi inherit QObjects, but you can definitively have QObjects in your lib.
    There are no other restrictions AFAIK, except those imposed by C++ itself.
    And the QObject restriction is in the documentation.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. What to use for web applications?
    By szisziszilvi in forum Newbie
    Replies: 1
    Last Post: 7th April 2011, 07:25
  2. Qt applications and USB
    By pocketchange in forum Newbie
    Replies: 2
    Last Post: 11th March 2011, 05:16
  3. Deploying applications with new Qt libraries
    By Luc4 in forum Qt Programming
    Replies: 0
    Last Post: 24th June 2010, 22:31
  4. Networking between applications
    By croland in forum Qt Programming
    Replies: 3
    Last Post: 6th June 2007, 10:35
  5. Deploying QT applications
    By SteM in forum Installation and Deployment
    Replies: 3
    Last Post: 6th June 2007, 10:08

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.