-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add QHeaderView.setSectionResize for Qt4 layer #70
Comments
@mottosso maybe we need to override the QTreeView, QTableView classes so that the class QTableView(OriginalQtTableView):
def __init__(self, *args, **kwargs):
super(QTableView, self).__init__(*args, **kwargs)
self.setHorizontalHeader(QHeaderView(self))
self.setVerticalHeader(QHeaderView(self)) But if we are doing this, I would rather not use patches, but override classes as needed. |
Possibly. The trouble I've found with replacing classes with subclasses, as opposed to monkey patching, is that Qt is still returning the original classes from calls such as |
Closes spyder-ide#70
Closes spyder-ide#70
Closes spyder-ide#70
Hi qtpy,
As discussed in #65, I've got a problem, and it occurs at random.
Reproducible
The error there is thrown 9/10 times I try. :(
If I remove the line with
hasattr
, it works 10/10, so I figure some magic (threaded initialisation?) must be occurring on this line.The text was updated successfully, but these errors were encountered: