widget - QT Creator Keypad -


so have app developing in qt , have fair amount of c/c++ experience first foray gui design being said have app functioning want function repeating alot of code keypad copy , pasting each ui file corrosponding dialog windows , copy slots it

void login_dialog::on_kp1_clicked()  qkeyevent key(qkeyevent::keypress, qt::key_1, qt::nomodifier, "1", false, 0 );     qapplication::sendevent(this->focuswidget(), &key); 

wondering how can create separate ui/cpp/h files corrosponding slots , embed in dialogs want use it

you can directly used qt virtual keyboard 1.1 keypad layout.

if want costume layout keypad. need create qwidgets of costume layouts of keypad. bellow link provided guidance create costume qwidget in qt:

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


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -