well, thanks, i was playing around with that for the last 4 hours, but i don't get it to work...

Maybe you could tell me whats wrong with this:

main.cpp
Qt Code:
  1. #include "mainwindow.h"
  2. #include <QxtApplication>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6. QxtApplication a(argc, argv);
  7. MainWindow w;
  8. w.show();
  9. return a.exec();
  10. }
To copy to clipboard, switch view to plain text mode 


mainwindow.h
Qt Code:
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3.  
  4. #include <QtGui/QMainWindow>
  5. #include <QxtApplication>
  6. #include <QxtGlobalShortcut>
  7.  
  8. namespace Ui
  9. {
  10. class MainWindow;
  11. }
  12.  
  13. class MainWindow : public QMainWindow
  14. {
  15. Q_OBJECT
  16. QxtGlobalShortcut *m_action;
  17.  
  18. public:
  19. MainWindow(QWidget *parent = 0);
  20. ~MainWindow();
  21.  
  22. public slots:
  23. void jump();
  24. private:
  25. Ui::MainWindow *ui;
  26. };
  27.  
  28. #endif // MAINWINDOW_H
To copy to clipboard, switch view to plain text mode 

and mainwindow.cpp
Qt Code:
  1. #include "mainwindow.h"
  2. #include "ui_mainwindow.h"
  3. #include <QxtApplication>
  4. #include <QxtGlobalShortcut>
  5. #include <QDebug>
  6. MainWindow::MainWindow(QWidget *parent)
  7. : QMainWindow(parent), ui(new Ui::MainWindow), m_action(new QxtGlobalShortcut(QKeySequence("Ctrl+Alt+A")))
  8. {
  9. ui->setupUi(this);
  10. connect(m_action, SIGNAL(activated()), this, SLOT(jump()));
  11. }
  12.  
  13. MainWindow::~MainWindow()
  14. {
  15. delete ui;
  16. }
  17.  
  18. void MainWindow::jump()
  19. {
  20. qDebug() << "Jump!";
  21. }
To copy to clipboard, switch view to plain text mode 


The Problem is:
When i start the program (compiling works fine), the application closes, and windows tells me something like "....exe isn't working anymore..." [sorry, i don't know the exakt message in english, that's the translation of the german message]

Doe's anyone know what I did wrong?

(I'm using QtCreator..)