|
Whiteley Research Inc., 456 Flora Vista Avenue, Sunnyvale CA 94086 wrcad.com |
Graphics Toolkit Selection: GTK and Qt
IMPORTANT NOTE: Qt is NOT open source! Qt is available free of charge for non-commercial use in open source projects. When this is not the case, potential users must investigate and comply with the Qt licensing terms. The Xic, WRspice and other graphical programs have historically used the GTK-2.0 toolkit. This, however, is rather old and obsolete. After an abortive effort to migrate to GTK-3.0 (which is also obsolete but less so) it became clear that a major change of direction was required, and a huge effort was initiated to switch to the Qt toolkit. This is done, but use will likely uncover things that need fixing. Status as of September 17, 2024:
To use the Qt versions, the Qt toolkit must be installed.
Linux
Windows pacman -S mingw-w64-x86_64-qt6
Apple sudo port -v selfupdateSwitching between running GTK2 and Qt-based tools You can switch between the two versions using a .xtrc file which is found either in the current directory or your home directory. You will need to create this file to use the Qt version. This is easily done with a text editor. If this file is not found, GTK2 is the default. The .xtrc file contains a single line that looks like grpref=GTK2 Note that there is no white space around the '=' character. The GTK2 is replaced by QT5 or QT6 when you want to run Qt. The 5/6 corresponds to the Qt version. You can change which version to run by modifying the .xtrc file with a text editor. This will take effect the next time a graphical tool is started. |