# How to get GPU information using QT and VTK?

**URL:** <https://discourse.slicer.org/t/how-to-get-gpu-information-using-qt-and-vtk/35297>\
**Category:** Development\
**Tags:** vtk, python, qt\
**Created:** [April 4, 2024, 9:19pm UTC](https://discourse.slicer.org/t/how-to-get-gpu-information-using-qt-and-vtk/35297 "2024-04-04T21:19:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [April 4, 2024, 11:18pm UTC](https://discourse.slicer.org/t/how-to-get-gpu-information-using-qt-and-vtk/35297/3 "2024-04-04T23:18:48Z")

</div>

> [@How to access qtcore constants in Python?](https://discourse.slicer.org/t/how-to-access-qtcore-constants-in-python/13137/2):
>
> Slicer uses PythonQt library for Python wrapping of Qt. PyQt is not free to use (it has GPL/commercial license), so we have never even considered using it. Python for Qt is very popular, as it is provided by the Qt company, but PythonQt has many advantages - most importantly that it is intended for applications that embed Python. Anyway, Slicer imports all Qt packages in qt namespace. For example, QFile class in qtcore can be accessed as qt.QFile()

`import qt` is how you will use PythonQt in Slicer. Pyside is not used as Pyside6 is actually for Qt6 and Slicer still uses Qt5.

---

_[View the full topic](https://discourse.slicer.org/t/how-to-get-gpu-information-using-qt-and-vtk/35297)._
