Results 1 to 3 of 3

Thread: How to hide QAxServer details from .NET?

  1. #1
    Join Date
    Jan 2011
    Posts
    4
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question How to hide QAxServer details from .NET?

    I am creating a QAxServer and would like to expose it as an ActiveX component with some - but not all - of its slots and signals, to a .NET class library.
    When I take a look inside the RCW (Runtime Callable Wrapper) created by Visual Studio from my Qt/ActiveX DLL, I see all signals and slots.

    How can I hide the internal implementation, so that the .NET library has access only to the minimum required signals and slots, and keep the others invisible to .NET?

    So, basically, provide access to a public API, but restrict access to internal implementation?

    Thank you.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to hide QAxServer details from .NET?

    Does it also expose slots declared private?

  3. The following user says thank you to ChrisW67 for this useful post:

    EgorSharin (16th February 2011)

  4. #3
    Join Date
    Jan 2011
    Posts
    4
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to hide QAxServer details from .NET?

    Chris,
    Thank you very much for your reply.

    I tried to create 2 new slots: 1 public and 1 private.

    Also, I created/added a test class which is *not* declared as ActiveX.

    The resulting COM Interop assembly shows the public slot, but has no clue about the private slot and the "internal implementation" class!

    Problem solved!!!

    Thanks a lot!

Similar Threads

  1. QAxServer:: Out of process executable server
    By Pharell in forum Qt Programming
    Replies: 3
    Last Post: 14th December 2012, 10:31
  2. QAxServer-based ActiveX control crashes gdb
    By barbicels in forum Qt Programming
    Replies: 0
    Last Post: 15th September 2010, 16:12
  3. Linker error with QAxServer and QAxContainer
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 29th October 2008, 22:44
  4. Listening events of a QAxServer module
    By juan in forum Qt Programming
    Replies: 1
    Last Post: 5th February 2008, 14:59
  5. QProgressBar: don't understand in details, help me !!!
    By haconganh in forum Qt Programming
    Replies: 5
    Last Post: 10th May 2007, 08:07

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.