IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Tablet Example

This example shows how to use a Wacom tablet in Qt applications.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Tablet Example

 
Sélectionnez
QT += widgets
requires(qtConfig(filedialog))

HEADERS     =   mainwindow.h \
        tabletcanvas.h \
        tabletapplication.h
SOURCES     =   mainwindow.cpp \
        main.cpp \
        tabletcanvas.cpp \
        tabletapplication.cpp
RESOURCES += images.qrc

# Avoid naming the target "tablet", as it would create an executable
# named "tablet.exe" on Windows and trigger a bug (in the Wacom drivers, apparently)
# preventing tablet messages from being received.
TARGET = qttablet

# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/tablet
INSTALLS += target

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+