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. Custom widget designing and plugin implementation
Forum Updated to NodeBB v4.3 + New Features

Custom widget designing and plugin implementation

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 1.4k Views 2 Watching
  • 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.
  • qt_ankit_developerQ Offline
    qt_ankit_developerQ Offline
    qt_ankit_developer
    wrote on last edited by
    #1

    Hello,
    Current state:
    --> State I have designed a 4*3 keypad with using Qpushbuttons of qt creator .
    keypad is correctly working with signal and slot connection .

    Now i want to use that Gui program as a custom widget or shared library for another Gui program .

    or

    i want to dock my keypad Gui into another Gui.
    please help me for implementation to create a custom widget and their plugins setup.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Have a look at the Creating Custom Widgets for Qt Designer chapter in Qt's documentation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • qt_ankit_developerQ Offline
        qt_ankit_developerQ Offline
        qt_ankit_developer
        wrote on last edited by
        #3

        dear sir
        I have created a keypad widget with main window class keypad is correctly working

        now i want to use that widget in another program
        with using plugin mechanism
        Is there any solution u would like to suggest to achieve this task?

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          Hi
          If you need full blown Designer integration, you should add the needed plugin code and
          add it to Creator-Designer. The link @SGaist provides, shows how that is done.

          Alternatively , you can directly use what you have now via
          promotion.

          http://doc.qt.io/qt-5/designer-using-custom-widgets.html

          This allow u to place at design time, a placeholder
          and when app is run, its your keypad.
          This often is enough for reuse if you custom widget do not have extra
          properties you want to alter in Designer.

          1 Reply Last reply
          2
          • qt_ankit_developerQ Offline
            qt_ankit_developerQ Offline
            qt_ankit_developer
            wrote on last edited by
            #5

            dear sir,

            I made the custom widget by creating a custom class now i want to link that widget class signals to my main Gui class .

            Detailed explanation :- I have created two classes one is my main class and other is my keypad class now i want to generate signals from keypad class .and want to receive that signal in my main class..
            how can i do this task ?...

            1 Reply Last reply
            0
            • qt_ankit_developerQ Offline
              qt_ankit_developerQ Offline
              qt_ankit_developer
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi
                it seems very the same as here
                https://forum.qt.io/topic/89558/custom-widget/12
                so answer is the same :)

                I would use QApplications FocusObject to know what widget that has
                keyboard focus and then use sendEvent to post keypresses to that widget.

                1 Reply Last reply
                2
                • qt_ankit_developerQ Offline
                  qt_ankit_developerQ Offline
                  qt_ankit_developer
                  wrote on last edited by
                  #8

                  0_1523602985140_photo.jpg

                  1 Reply Last reply
                  0
                  • mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by mrjj
                    #9

                    Hi
                    it seems exactly the same so should be the answer :)
                    If you want something different please post with requirements.

                    1 Reply Last reply
                    2

                    • Login

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