记录qt的一些案例,以后方便查找
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2021-06-26T19:35:05
  4. #
  5. #-------------------------------------------------
  6. QT += core gui
  7. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  8. TARGET = Shell_NotifyIcon
  9. TEMPLATE = app
  10. # The following define makes your compiler emit warnings if you use
  11. # any feature of Qt which has been marked as deprecated (the exact warnings
  12. # depend on your compiler). Please consult the documentation of the
  13. # deprecated API in order to know how to port your code away from it.
  14. DEFINES += QT_DEPRECATED_WARNINGS
  15. # You can also make your code fail to compile if you use deprecated APIs.
  16. # In order to do so, uncomment the following line.
  17. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  18. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  19. CONFIG += c++11
  20. SOURCES += \
  21. main.cpp \
  22. widget.cpp \
  23. menudialog.cpp
  24. HEADERS += \
  25. widget.h \
  26. menudialog.h
  27. FORMS += \
  28. widget.ui \
  29. menudialog.ui
  30. # Default rules for deployment.
  31. qnx: target.path = /tmp/$${TARGET}/bin
  32. else: unix:!android: target.path = /opt/$${TARGET}/bin
  33. !isEmpty(target.path): INSTALLS += target
  34. RESOURCES += \
  35. resources.qrc