Results 1 to 4 of 4

Thread: Load a form DLL/Plugin

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2017
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Load a form DLL/Plugin

    Hello to everyone,

    I'm new to this world(Qt), I have a application wrote in. An unknown version of Qt.
    This app uses DLL to load plug-in.
    Can anyone can explain to me or give me a reference(tutorial or such) to learn to create DLL who exports QDialog/QWidget/QForms.

    Thank You in advance.

    PS. : I explored the forum for 3 days a no items matched my search params.
    PPS. : any help will be very appreciated.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Load a form DLL/Plugin

    First you need to find out what the application's plugin mechanism expects.

    Once you have that, your plugin can basically do whatever Qt application code can do.

    Cheers,
    _

  3. #3
    Join Date
    Feb 2017
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Load a form DLL/Plugin

    Thanks for.the answer but the problem is that, I need to quickly develop a plugin, wrapped in a dll but seems not exist a tutorial for that and I'm a little bit stuck. Hope in anyone reply.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Load a form DLL/Plugin

    A plugin is a dynamically linked library, a DLL on Windows.
    QtCreator has a project template for that, called "C++ library".

    In a qmake .pro file that is
    Qt Code:
    1. TEMPLATE = lib
    2. CONFIG += plugin
    To copy to clipboard, switch view to plain text mode 

    The rest is up to the plugin interface used by the host application.

    Cheers,
    _

Similar Threads

  1. Replies: 2
    Last Post: 8th August 2013, 07:48
  2. Load one form on button click
    By vinithr in forum Newbie
    Replies: 2
    Last Post: 16th April 2012, 17:47
  3. Help me to load one form over another form PushButton
    By wagmare in forum Qt Programming
    Replies: 7
    Last Post: 26th November 2008, 16:11
  4. Load form mdi child plugin
    By estanisgeyer in forum Qt Programming
    Replies: 4
    Last Post: 10th February 2008, 14:27

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.