klayout/testdata
Matthias Köfferlein b968f2b47f
#730: providing a new Qt module named QtUiTools for QUiLoader class s… (#735)
* #730: providing a new Qt module named QtUiTools for QUiLoader class support.

* Fixed a compile error on Mac

* Added QtUiTools to some more places

* Fixed a linker issue in the QtUiTools Python lib

* On occasion fixed a infinite recursion problem in the debugger

The recursion happened because by mistake I instantiated a
QApplication inside an in-application Python script. This
crashed the debugger due to infinite recursion. This is not
a real use case but to prevent similar issues, a recursion
sentinel was added.

* Removed QCoreApplication#notify from script bindings

Reasoning: "notify" made standalone scripts using QApplication and
QUiLoader virtually impossible.

Problem description:
- When a QApplication object is instantiated, e.g. in Python, the Qt binding
  will install reimplementation hooks as the object may be dynamically
  extended.
- A notify is virtual this means the *every* "notify" call in the application
  is routed through the interpreter.
- For one thing this will slow down the application
- But as "notify" is called a zillion times this has more than this side effect.
- Specifically "notify" is called from within the QWidget constructor to
  indicate a new widget. Then, if a QDialog for example is instatiated, it's
  base class constructor will call "notify" when the object isn't ready yet.
- This has another severe side effect: as the object isn't ready yet, it gets
  registered in the Python space with the wrong class and QDialog is not visible
  as such.

To mitigate these problems, the most efficient solution is to disable "notify"
in general. There is hardly any use case in a script environment (in C++,
apart from hacking the only reasonable use case is exception handling, but
this does not apply to scripts). For providing the call functionality of
"notify" you should better use "postEvent" or "sendEvent" anyway.

So farewell QCoreApplication.notify ...

* Fixed python test for QtUiTools module

* Fixed UiTools test on Qt4 - QUiLoader needs an application object

Co-authored-by: Kazunari Sekigawa <kazunari.sekigawa@gmail.com>
2021-02-25 21:29:21 +01:00
..
algo More robustness against test variations on different platforms. 2021-01-19 21:49:38 +01:00
bd Bug fixed strmxor with deep mode, added tests. 2019-09-07 21:27:12 +02:00
bool Added a testcase for two-boolean edge processor. 2020-06-14 16:50:34 +02:00
buddies Updated copyright to 2021 2021-01-05 22:57:48 +01:00
cif Fixed issue #578 (CIF writer issue with arbitrary angle) (#581) 2020-06-05 10:57:14 +02:00
drc Implemented with_holes for generic DRC too 2021-02-08 21:29:41 +01:00
dxf Fixed #198 (DXF contour stitching renders fuzzy polygons) 2018-11-22 22:19:46 +01:00
gds Issue 718 (#719) 2021-01-31 19:21:15 +01:00
gds2_txt Initialized repository with current sources. 2017-02-12 13:21:08 +01:00
img Issue #535 (Image handling enhancements) (#551) 2020-05-02 13:45:20 +02:00
klayout_main Updated copyright to 2021 2021-01-05 22:57:48 +01:00
lay Fixed two more unit tests and renamed new 'define_layer' to 'define_opt_layer' for disambiguation 2019-05-29 01:22:11 +02:00
lefdef Test update after update of LEF/DEF reader. 2021-02-21 21:23:45 +01:00
lvs Fixed #709. (#714) 2021-01-31 19:21:00 +01:00
lym Added missing file. 2020-09-13 23:29:15 +02:00
magic Small bugfix for MAG writer + tests. 2019-12-08 20:25:25 +01:00
net_tracer Updated testdata with new variant because of unordered set fluctuation. 2021-01-23 22:31:17 +01:00
oasis Fixed an issue with the OASIS reader (unused cells popped up as dummy top levels) 2020-12-30 23:37:01 +01:00
other Initialized repository with current sources. 2017-02-12 13:21:08 +01:00
pymod #730: providing a new Qt module named QtUiTools for QUiLoader class s… (#735) 2021-02-25 21:29:21 +01:00
python Yet another test suite Python compatibility fix. 2021-01-31 18:16:46 +00:00
ruby Merge pull request #732 from KLayout/lefdef-enhancements 2021-02-25 21:28:02 +01:00
sessions Follow-up on #353 (sessions paths relative to session file) 2019-09-18 22:05:37 +02:00
tl WIP: removed a temp file. 2020-08-31 20:27:57 +02:00
vendor/ruby/test Fixed an internal error happening when a librrary isn't registered and destroyed by the GC 2020-08-30 11:35:30 +02:00