Here are snippets from one of the Qxt test apps:
int main(int argc, char* argv[])
{
QxtApplication app(argc, argv);
// ...
}
int main(int argc, char* argv[])
{
QxtApplication app(argc, argv);
// ...
}
To copy to clipboard, switch view to plain text mode
QxtGlobalShortcut* shortcut = new QxtGlobalShortcut(this);
connect(shortcut, SIGNAL(activated()), this, SLOT(toggleVisibility()));
if (!shortcut
->setShortcut
(QKeySequence("Ctrl+Shift+Alt+S"))) // ...
QxtGlobalShortcut* shortcut = new QxtGlobalShortcut(this);
connect(shortcut, SIGNAL(activated()), this, SLOT(toggleVisibility()));
if (!shortcut->setShortcut(QKeySequence("Ctrl+Shift+Alt+S")))
// ...
To copy to clipboard, switch view to plain text mode
PS. QxtApplication is no more needed in the development version (upcoming 0.6 version).
Bookmarks