title: Qt Can't Draw At Android Emulator
body: <p>I am currently trying to create a basic application to Android with Qt C++ and I am using Qt Creator. I want to make a design that looks like a radar screen with black background and green circles.</p>
  
  <p>I have done every steps of installations about Android and Qt 5.11.1.</p>
  
  <p>I am creating this application for armeabi-v7a so my kit is that too. </p>
  
  <p>I have written the code that makes the background black and I have drawn 3 green circles on that. My code works just fine for Desktop Qt 5.11.1 MinGW 32 bit kit. the output is like this:</p>
  
  <p><a href="https://i.stack.imgur.com/JKn5v.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JKn5v.png" alt="enter image description here"></a></p>
  
  <p>But when I change the kit to open up the Android Emulator for armeabi-v7a, this happens:</p>
  
  <p><a href="https://i.stack.imgur.com/stFtM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/stFtM.png" alt="enter image description here"></a></p>
  
  <p>Now there is something that I don't know exactly. My background has been changed to black but I can't see any circles. I know that my background isi changed because if I don't use the the function that I have written to change the background to black, this happens in windows kit:</p>
  
  <p><a href="https://i.stack.imgur.com/wFhQG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wFhQG.png" alt="enter image description here"></a></p>
  
  <p>And this happens in arm kit:</p>
  
  <p><a href="https://i.stack.imgur.com/6pLJX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6pLJX.png" alt="enter image description here"></a></p>
  
  <p>My paintEvent function to draw ellipses is like this:</p>
  
  <pre><code>void MainWindow::paintEvent(QPaintEvent *event) {
      QPainter painterObj(this);
      painterObj.setPen(QPen(Qt::green, 2, Qt::SolidLine, Qt::RoundCap));
  
      painterObj.save();
      painterObj.drawEllipse(0, 0, 318, 512);
      painterObj.restore();
  
      painterObj.save();
      painterObj.drawEllipse(53, 86, 212, 340);
      painterObj.restore();
  
      painterObj.save();
      painterObj.drawEllipse(106, 172, 106, 168);
      painterObj.restore();
  }
  </code></pre>
  
  <p>My background color changer function is like this and I call it right after ui->setupUi(this); :</p>
  
  <pre><code>void MainWindow::setBackGroundColorToBlack() {
      QPalette pal = palette();
  
      // set black background
      pal.setColor(QPalette::Background, Qt::black);
      this-&gt;setAutoFillBackground(true);
      this-&gt;setPalette(pal);
  }
  </code></pre>
  
  <p>These functions are under protected at header file like this:</p>
  
  <pre><code>protected:
  void paintEvent(QPaintEvent *e);
  void setBackGroundColorToBlack();
  </code></pre>
  
  <p>Can anyone please help me? I am stuck with this problem and I can not find any guide or answer on the internet.</p>
  
  <p>Thanks in advance.</p>