fork download
  1. #include "mainwindow.h"
  2. #include "ui_mainwindow.h"
  3.  
  4. MainWindow::MainWindow(QWidget *parent) :
  5. QMainWindow(parent),
  6. ui(new Ui::MainWindow)
  7. {
  8. ui->setupUi(this);
  9. }
  10.  
  11. MainWindow::~MainWindow()
  12. {
  13. delete ui;
  14. }
  15.  
  16. void MainWindow::on_pushButton_clicked()
  17. {
  18. QAndroidJniObject::callStaticMethod<void>("com/amr/test/MyService",
  19. "startMyService",
  20. "(Landroid/content/Context;)V",
  21. QtAndroid::androidActivity().object());
  22. }
  23.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:24: fatal error: mainwindow.h: No such file or directory
compilation terminated.
stdout
Standard output is empty