Skip to content

Instantly share code, notes, and snippets.

View kdravolin's full-sized avatar
👽

Konstantin Dravolin kdravolin

👽
  • Mail.ru Group
  • Russia, Omsk
View GitHub Profile
@kdravolin
kdravolin / qevent_types_debug_info.py
Created April 5, 2016 13:23
Information about QEvent types. It's used for debug.
{0: 'QEvent::None | Not an event.',
114: 'QEvent::ActionAdded | A new action has been added (QActionEvent).',
113: 'QEvent::ActionChanged | An action has been changed (QActionEvent).',
115: 'QEvent::ActionRemoved | An action has been removed (QActionEvent).',
99: 'QEvent::ActivationChange | A widgets top-level window activation state has changed.',
121: 'QEvent::ApplicationActivate | This enum has been deprecated. Use ApplicationStateChange instead.',
122: 'QEvent::ApplicationDeactivate | This enum has been deprecated. Use ApplicationStateChange instead.',
36: 'QEvent::ApplicationFontChange | The default application font has changed.',
37: 'QEvent::ApplicationLayoutDirectionChange | The default application layout direction has changed.',
38: 'QEvent::ApplicationPaletteChange | The default application palette has changed.',
#include "stdafx.h"
#include <sensorsapi.h>
#include <sensors.h>
#pragma comment(lib,"sensorsapi.lib")
int main()
{
ISensorManager* sensorManager = 0;
HRESULT hr = 0;