QtCore.Qt.FramelessWindowHint not working on my Windows machine ...

  • Hi everybody !

    I ve wrote some code on a linux machine that runs fine but when I try to run it on my windows machine then it doesn't work as expected anymore.
    The Frameless flag closes my QMainWindow ...

    from PySide import QtCore, QtGui
    class TabBar(QtGui.QTabBar):
        """Allow to drag a tab anywhere on the screen."""
        def __init__(self):
            """Initialize the class."""
            super(TabBar, self).__init__()
        # end def __init__
        def mousePressEvent(self, event):
            index = self.tabAt(event.pos())
            self.tabContent = self.parent().widget(index)
            print self.tabContent.parent()
            super(TabBar, self).mousePressEvent(event)
        # end def mousePressEvent
        def mouseMoveEvent(self, event):
            print 'move'
        # end def mouseMoveEvent
        def mouseReleaseEvent(self, event):
            print 'release'
        # end def mouseReleaseEvent
    # end class TabBar

    Why is it not working on my windows machine ??


  • Okay, apparently I have to set Frameless BEFORE showing the window ...

Log in to reply