title: How to resize a window from the edges after adding the property QtCore.Qt.FramelessWindowHint
body: <p>Good night.
  I have seen some programs with new borderless designs and still you can make use of resizing.
  At the moment I know that to remove the borders of a pyqt program we use:
  QtCore.Qt.FramelessWindowHint</p>
  <p>And that to change the size of a window use QSizeGrip.
  But how can we resize a window without borders?</p>
  <p>This is the code that I use to remove the border of a window but after that I have not found information on how to do it in pyqt5.
  I hope you can help me with an example of how to solve this problem</p>
  <pre><code>from PyQt5.QtWidgets import QMainWindow,QApplication
  from PyQt5 import  QtCore
  
  class Main(QMainWindow):
      def __init__(self):
          QMainWindow.__init__(self)
  
  
          self.setWindowFlags(QtCore.Qt.FramelessWindowHint)
  
  
  app = QApplication([])
  m = Main()
  m.show()
  m.resize(800,600)
  app.exec_()
  </code></pre>