[PyQt] wider window than screen width

Peter Irbizon peterirbizon at gmail.com
Wed Apr 2 10:11:49 BST 2014


I tried to set window dimensions with self.resize(1450,250) more than is my
screen resolution (1280, 800). But it limits window width to max 1280.

Please,

How can I set window width wider than my screen width?

my code:

from PyQt4 import QtCore, QtGui, QtNetwork, QtWebKit
class MainWindow(QtGui.QMainWindow):
    def __init__(self):
        super(MainWindow, self).__init__()

        self.view = QtWebKit.QWebView(self)

        self.setGeometry(3,30,800,800) # Position window
        self.resize(1450,250)  # Resize window

if __name__ == '__main__':
    import sys
    app = QtGui.QApplication(sys.argv)
    programwindow = MainWindow()
    programwindow.show()

    sys.exit(app.exec_())
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140402/ec999a78/attachment.html>


More information about the PyQt mailing list