[PyQt] problems to use QTableView

Daniel Krause madakr at web.de
Wed May 18 20:32:51 BST 2016


Hello,

I have some problems to understand how to use QTableView.

When I run this code

if __name__ == '__main__':
    import pandas
    from PyQt5 import QtCore
    from PyQt5.QtWidgets import QTableView
    from PyQt5.QtGui import QGuiApplication
    import sys

    print('initialize app')
    application = QGuiApplication(sys.argv)
    print('initialize view')
    view = QTableView()
    print(view)
    print('do something else')


the execution of the script stops before

    print(view)
    print('do something else')


What am I missing?

Thanks for any hints,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160518/8b59eb57/attachment.html>


More information about the PyQt mailing list