Custom widget designing and plugin implementation
--> 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 .
i want to dock my keypad Gui into another Gui.
please help me for implementation to create a custom widget and their plugins setup.
Have a look at the Creating Custom Widgets for Qt Designer chapter in Qt's documentation.
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?
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
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.
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 ?...
This post is deleted!
it seems very the same as here
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.
it seems exactly the same so should be the answer :)
If you want something different please post with requirements.