Unsolved Custom widget designing and plugin implementation
-
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. -
Hi,
Have a look at the Creating Custom Widgets for Qt Designer chapter in Qt's documentation.
-
dear sir
I have created a keypad widget with main window class keypad is correctly workingnow 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? -
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. -
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 ?... -
This post is deleted! -
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. -
-
Hi
it seems exactly the same so should be the answer :)
If you want something different please post with requirements.