Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to Load methods dynamically using Qt..!

How to Load methods dynamically using Qt..!

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qt 4.7.4methodsdynamic loading
4 Posts 2 Posters 1.3k 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.
  • R Offline
    R Offline
    Rohith
    wrote on 8 Jan 2016, 10:37 last edited by
    #1

    Hi,

    I need to develop an application for my POS device,at first the user will select the modules that he want to use at the begining of the application the application should load with the methods or functionality that was entred as by the user requirement.
    Ex:-Our Pos contains various I/O moduels such as LCD,KeyPad,Printer etc..,
    At the begining of application the user enters LCD and Printer then the application should call only the methods that contians the code regarding these two modules.

    So please guide me how to develop the application and suggest me which Qt classes should i go through.Our Pos device works on Linux OS and the Qt version that i am using is 4.7.4.

    Thanks in advance,
    Rohith.G

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 8 Jan 2016, 12:49 last edited by jsulm 1 Aug 2016, 12:55
      #2

      Sounds like you want to load some parts of your application when they are needed.
      In this case you could implement those parts as shared libraries and load them manually using QLibrary (http://doc.qt.io/qt-4.8/qlibrary.html) at run-time.
      Another possibility is to use Qt plug-ins: http://doc.qt.io/qt-4.8/plugins-howto.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rohith
        wrote on 9 Jan 2016, 04:26 last edited by
        #3

        Hi jsulm,

        Thanks for replying,is it possible to provide any sample code for the methods that you have suggested above..?

        Thanks & Regards,
        Rohith.G

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 11 Jan 2016, 05:16 last edited by
          #4

          Check the links I provided - there are some examples. Maybe Qt examples provide more code.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          4/4

          11 Jan 2016, 05:16

          • Login

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