Change from Adam McNicol -Fix Layout Flashing

https://github.com/longroadcomputing/PyQtDatabases/commit/87de0c2629c970dfdc27416c8e89ec89b88fe7d1