Hi all.
I create simple application
mainwindow.h:

Qt Code:
  1. #include <QMainWindow>
  2. #include <QTextBrowser>
  3. #include "mainwindow.h"
  4.  
  5. class MainWindow : public QMainWindow {
  6. Q_OBJECT
  7.  
  8. public:
  9. MainWindow();
  10. };
To copy to clipboard, switch view to plain text mode 

mainwindow.cpp:

Qt Code:
  1. #include "mainwindow.h"
  2.  
  3. MainWindow::MainWindow() : QMainWindow(){
  4. setCentralWidget(new QTextBrowser());
  5. }
To copy to clipboard, switch view to plain text mode 

main.cpp:

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

Everything works, but when i ssh myself and run
Qt Code:
  1. ./MyApp -display :0.0
To copy to clipboard, switch view to plain text mode 
application starts for a while and then it fail:
Qt Code:
  1. ASSERT failure in QList<T>::operator[]: "index out of range", file /usr/include//QtCore/qlist.h, line 463
  2. Aborted
To copy to clipboard, switch view to plain text mode 
Any ideas how to manage starting application on defined X display ?
Thanks, regards BasY