title: How to include folium map into PyQt5 application window?
body: <p>I would like to ask how do I go about including a folium map into PyQt 5 window application such that the map does not take up the whole window. I have found a similar post on StackOverflow "<a href="https://stackoverflow.com/questions/58590199/how-to-show-folium-map-inside-a-pyqt5-gui">How to show Folium map inside a PyQt5 GUI?</a>", however, the solution code provided shown the folium map takes up the whole of the PyQt 5 window application. </p>
  
  <p>So my question is how do I include the folium map but only takes up a portion of the PyQt 5 window application? As shown below, I am trying to include the map into the rectangle area. *The rectangle black box is drawn on paint for reference purposes.</p>
  
  <p><strong>FYI</strong> I have tried out the solution code from the StackOverflow post but I can't seem to be able to resize the map.</p>
  
  <p><strong>WANTED OUTPUT</strong>
  <a href="https://i.stack.imgur.com/skPGZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/skPGZ.png" alt="enter image description here"></a></p>
  
  <p><strong>CURRENT CODE FOR REFERENCE</strong></p>
  
  <pre><code>from PyQt5.QtWidgets import QMainWindow, QApplication, QPushButton
  from PyQt5 import QtWebEngineWidgets
  import sys
  from PyQt5 import QtGui
  from PyQt5.QtCore import QRect
  
  
  class Window(QMainWindow):
  def __init__(self):
      super().__init__()
  
      self.title = "MAP PROJECT"
      self.left = 200
      self.top = 100
      self.width = 1500
      self.height = 800
  
      self.initWindow()
  
  def initWindow(self):
      # set window title
      self.setWindowTitle(self.title)
      # set window geometry
      # self.setGeometry(self.left, self.top, self.width, self.height)
      # Disable PyQt 5 application from resizing
      self.setFixedSize(self.width, self.height)
  
      self.buttonUI()
  
      self.show()
  
  def buttonUI(self):
      shortPathButton = QPushButton("Find shortest path", self)
      # (set button location (x, x) set button size (y, y)
      shortPathButton.setGeometry(QRect(30, 300, 120, 50))
  
      button2 = QPushButton("Another path", self)
      # (set button location (x, x) set button size (y, y)
      button2.setGeometry(QRect(30, 370, 120, 50))
  
      button3 = QPushButton("Another path", self)
      # (set button location (x, x) set button size (y, y)
      button3.setGeometry(QRect(30, 440, 120, 50))
  
      # Below code is to connect the button to the function
      # button.clicked.connect(self.ClickMe)
  
  # Create function for shortest path (A* algorithm)
  """def ClickMe(self):
      print("Hello World")"""
  
  
  if __name__ == "__main__":
      App = QApplication(sys.argv)
      window = Window()
      sys.exit(App.exec())
  </code></pre>