title: Qt file gets reported as virus and won't launch
body: <p>I have made a Qt file recently and just compiled it. Straight after compiling, my Avast antivirus blocks it as a virus. I have spent hours trying to find a syntax error/infinite loop/typing mistake. I have read other questions and googled the problem. I came to a conclusion that it is out of my understanding. Here are my files:</p>
  
  <p><code>top_secret.h</code></p>
  
  <pre><code>#ifndef TOP_SECRET_H
  #define TOP_SECRET_H
  
  #include &lt;QtGui&gt;
  
  class top_secret : public QMainWindow
  {
      Q_OBJECT
      public:
          top_secret();
  
      private slots:
          void password_ckeck();
          void go_to_page_1();
          void go_to_page_2();
          void go_to_page_3();
          void go_to_page_4();
          void quit();
          void lock();
          void about();
  
      private:
          QStackedWidget *book;
  
          QWidget *lock_window;
          QWidget *window1;
          QWidget *window2;
          QWidget *window3;
          QWidget *window4;
  
          QLineEdit *input;
  
          QAction *quit_action;
          QAction *lock_action;
          QAction *about_action;
  
          QMenu *fileMenu;
  };
  #endif
  </code></pre>
  
  <p><code>submain.cpp</code></p>
  
  <pre><code>#include "top_secret.h"
  
  top_secret::top_secret(){
      //main things
      quit_action = new QAction(tr("Quit"), this);
      about_action = new QAction(tr("About"), this);
      lock_action = new QAction(tr("Lock"), this);
  
      connect(quit_action, SIGNAL(triggered()), this, SLOT(quit()));
      connect(about_action, SIGNAL(triggered()), this, SLOT(about()));
      connect(lock_action, SIGNAL(triggered()), this, SLOT(lock()));
  
      fileMenu = menuBar() -&gt; addMenu(tr("File"));
      fileMenu -&gt; addAction(lock_action);
      fileMenu -&gt; addAction(about_action);
      fileMenu -&gt; addSeparator();
      fileMenu -&gt; addAction(quit_action);
  
      book = new QStackedWidget;
  
      //lock window
      lock_window = new QWidget;
  
      QLabel *label = new QLabel(tr("Enter password"));
      input = new QLineEdit;
      QPushButton *button = new QPushButton(tr("Go"));
  
      connect(button, SIGNAL(clicked()), this, SLOT(password_ckeck()));
  
      QHBoxLayout *lock_layout;
      lock_layout -&gt; addWidget(label);
      lock_layout -&gt; addWidget(input);
      lock_layout -&gt; addWidget(button);
      lock_window -&gt; setLayout(lock_layout);
  
      //window 1
      window1 = new QWidget;
      QLabel *label1 = new QLabel("Name: Jakub Jagielski&lt;br&gt;Date of birth: 21/01/2014&lt;br&gt;Gender: Male&lt;br&gt;\
      Interested in: Women&lt;br&gt;Hair colour: Brown&lt;br&gt;Eye colour: brown");
      QPushButton *button1 = new QPushButton(tr("Next"));
  
      connect(button1, SIGNAL(clicked()), this, SLOT(go_to_page_2()));
  
      QVBoxLayout *layout1;
      layout1 -&gt; addWidget(label1);
      layout1 -&gt; addWidget(button1);
      window1 -&gt; setLayout(layout1);
  
      //window 2
      window2 = new QWidget;
      QLabel *label2 = new QLabel("Interests: Piano playing, science,&lt;br&gt;programming, computer science,&lt;br&gt;\
  Xbox 360 playing, reading facts,&lt;br&gt;Logical puzzles, security programs,&lt;br&gt;bypassing self-made security \
  programs,&lt;br&gt;creating complex security programs,&lt;br&gt;creating 2D games in Python tkinter,&lt;br&gt;creating apps \
  like this one.");
      QPushButton *button2previous = new QPushButton("back");
      QPushButton *button2next = new QPushButton("next");
  
      connect(button2previous, SIGNAL(clicked()), this, SLOT(go_to_page_1()));
      connect(button2next, SIGNAL(clicked()), this, SLOT(go_to_page_3()));
  
      QHBoxLayout *layout2bottom;
      QVBoxLayout *layout2;
      layout2bottom -&gt; addWidget(button2previous);
      layout2bottom -&gt; addWidget(button2next);
      layout2 -&gt; addWidget(label2);
      layout2 -&gt; addLayout(layout2bottom);
      window2 -&gt; setLayout(layout2);
  
      //window 3
      window3 = new QWidget;
      QLabel *label3 = new QLabel("Programming languages known by this user&lt;br&gt;rated out of 10:&lt;br&gt;\
      Python: 9/10&lt;br&gt;C++: 8/10&lt;br&gt;Java: 5/10&lt;br&gt;HTML/Css/JavaScript: 8/10&lt;br&gt;PHP: 2/10&lt;br&gt;Batch: 5/10&lt;br&gt;");
      QPushButton *button3previous = new QPushButton("back");
      QPushButton *button3next = new QPushButton("next");
  
      connect(button3previous, SIGNAL(clicked()), this, SLOT(go_to_page_2()));
      connect(button3next, SIGNAL(clicked()), this, SLOT(go_to_page_4()));
  
      QHBoxLayout *layout3bottom;
      QVBoxLayout *layout3;
      layout3bottom -&gt; addWidget(button3previous);
      layout3bottom -&gt; addWidget(button3next);
      layout3 -&gt; addWidget(label3);
      layout3 -&gt; addLayout(layout3bottom);
      window3 -&gt; setLayout(layout3);
  
      //window 4
      window4 = new QWidget;
      QLabel *label4 = new QLabel("This app has only been created &lt;br&gt; to try to make an app with&lt;br&gt;\
      C++ and its wonderful library called Qt.&lt;br&gt;This person's account hasn't been&lt;br&gt;really hacked. In \
      fact, the person&lt;br&gt;has made this app himself.");
      QPushButton *button4previous = new QPushButton("back");
      QPushButton *button4end = new QPushButton("quit");
  
      connect(button4previous, SIGNAL(clicked()), this, SLOT(go_to_page_3()));
      connect(button4end, SIGNAL(clicked()), this, SLOT(quit()));
  
      QHBoxLayout *layout4bottom;
      QVBoxLayout *layout4;
      layout4bottom -&gt; addWidget(button4previous);
      layout4bottom -&gt; addWidget(button4end);
      layout4 -&gt; addWidget(label4);
      layout4 -&gt; addLayout(layout4bottom);
      window4 -&gt; setLayout(layout4);
  
      //main
      book -&gt; addWidget(lock_window);
      book -&gt; addWidget(window1);
      book -&gt; addWidget(window2);
      book -&gt; addWidget(window3);
      book -&gt; addWidget(window4);
  
      setCentralWidget(book);
  }
  
  void top_secret::password_ckeck(){
      QString attempt = input -&gt; text();
      if (attempt == "Jakub"){
          top_secret::book -&gt; setCurrentIndex(1);
      }
  }
  
  void top_secret::go_to_page_1(){
      top_secret::book -&gt; setCurrentIndex(1);
  }
  
  void top_secret::go_to_page_2(){
      top_secret::book -&gt; setCurrentIndex(2);
  }
  
  void top_secret::go_to_page_3(){
      top_secret::book -&gt; setCurrentIndex(3);
  }
  
  void top_secret::go_to_page_4(){
      top_secret::book -&gt; setCurrentIndex(4);
  }
  
  void top_secret::lock(){
      top_secret::book -&gt; setCurrentIndex(0);
  }
  
  void top_secret::quit(){
      QMessageBox messagebox;
      messagebox.setText("Do you really wish to quit?");
      messagebox.setWindowTitle("exit?");
      messagebox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
      if (messagebox.exec() == QMessageBox::Yes){
          close();
      }
  }
  
  void top_secret::about(){
      QMessageBox messagebox2;
      messagebox2.setText("This app is a test to try out my new C++ abilities. This app \
      would take me half the time it took me if I wrote it in Python.");
      messagebox2.setWindowTitle("About");
      messagebox2.exec();
  }
  </code></pre>
  
  <p><code>main.cpp</code></p>
  
  <pre><code>#include "top_secret.h"
  #include &lt;QApplication&gt;
  
  int main(int argc, char *argv[]){
      QApplication app(argc, argv);
      top_secret *program = new top_secret;
      program -&gt; show();
      return app.exec();
  }
  </code></pre>
  
  <p>I'm very sorry about the amount of code present and I don't expect a perfect answer but if I could understand what I did wrong, I would be very pleased. Also, when I add the the file  to be ignored by my antivirus, it just doesn't launch.</p>
  
  <p>Note that my other Qt programs work fine so I'm convinced that this is due to my code.</p>