Results 1 to 6 of 6

Thread: Virtual class as a QWidget interface and dependency inversion principle.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Sep 2011
    Posts
    1,241
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3
    Thanked 127 Times in 126 Posts

    Default Re: Virtual class as a QWidget interface and dependency inversion principle.

    you can just forward declare the classes and you can still connect signals slots I think.

    Also, I'm not sure about your idea of dependency inversion - The method is to make the higher level class dependant on the abstraction - IStorage. So there is no problem with mainwindow being dependant up on it, because it is an abstraction.
    Last edited by amleto; 18th November 2011 at 21:39.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. Replies: 1
    Last Post: 17th December 2010, 16:43
  2. Replies: 1
    Last Post: 30th October 2010, 13:28
  3. separate class using an interface
    By qt_gotcha in forum Newbie
    Replies: 7
    Last Post: 3rd March 2010, 22:54
  4. Replies: 0
    Last Post: 3rd January 2009, 06:26
  5. Need help on wrapping Accessible Interface to QWidget
    By thi_optimist in forum Qt Programming
    Replies: 0
    Last Post: 27th November 2006, 20:10

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
  •  
Qt is a trademark of The Qt Company.