Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Plugins for extending my own Qt Application

Qt Plugins for extending my own Qt Application

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pmlit
    wrote on last edited by
    #1

    Warning ! This is NOT about "writing Qt extensions":http://qt-project.org/doc/qt-5.0/plugins-howto.html#the-higher-level-api-writing-qt-extensions but "extending my own Qt-based Application":http://qt-project.org/doc/qt-5.0/plugins-howto.html#the-lower-level-api-extending-qt-applications.

    I have read the whole documentation provided by Qt at the adress above but what I'd like my application to do is very specific and I don't really know how to manage to make it work in a clean way.
    I want my QMainWindow, which is opened and shown in the main() function, to contain a QMdiArea and to load plugins.
    Plugins must be able to add a QAction in a QMenu from the QMdiArea's menuBar().
    When the added action triggers, the plugin opens a QSubWindow in the QMdiArea and the sub-window's code is in the plugin.
    Since there must be several plugins for many different sub-windows, but they all do the same (that is to say, add an action in a menu from the menubar() and show them-selves when user triggers the action), I think I must have one single interface to transmit data from and to the mainWindow.

    How can I do ?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved