diff --git a/examples/tabview/main.cpp b/examples/tabview/main.cpp index 855643d8..d9b528ea 100644 --- a/examples/tabview/main.cpp +++ b/examples/tabview/main.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include @@ -96,5 +97,11 @@ int main( int argc, char* argv[] ) window.show(); + for ( int i = 0; i < 10; i++ ) + { + QskShortcutMap::addShortcut( Qt::Key_F1 + i, false, + [tabView, i] { tabView->removeTab( i ); } ); + } + return app.exec(); }