This example illustrates how QSortFilterProxyModel and QAbstractListModel can be used to display a list of filterable items in QML and Python.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # ███╗ ███╗ ██████╗ ██╗ ██╗███████╗██████╗ ████████╗ ██████╗ | |
| # ████╗ ████║██╔═══██╗██║ ██║██╔════╝██╔══██╗ ╚══██╔══╝██╔═══██╗ | |
| # ██╔████╔██║██║ ██║██║ ██║█████╗ ██║ ██║ ██║ ██║ ██║ | |
| # ██║╚██╔╝██║██║ ██║╚██╗ ██╔╝██╔══╝ ██║ ██║ ██║ ██║ ██║ | |
| # ██║ ╚═╝ ██║╚██████╔╝ ╚████╔╝ ███████╗██████╔╝ ██║ ╚██████╔╝ | |
| # ╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚══════╝╚═════╝ ╚═╝ ╚═════╝ | |
| # | |
| # ╔═════════════════════════════════════════════════════════════════╗ | |
| # ║ https://github.com/denilsonsa/udev-joystick-blacklist ║ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <math.h> | |
| // System constants | |
| #define deltat 0.001f // sampling period in seconds (shown as 1 ms) | |
| #define gyroMeasError 3.14159265358979f * (5.0f / 180.0f) // gyroscope measurement error in rad/s (shown as 5 deg/s) | |
| #define beta sqrt(3.0f / 4.0f) * gyroMeasError // compute beta | |
| //Global System Variables | |
| float a_x, a_y, a_z; // accelerometer measurements |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import QtQuick 2.4 | |
| Column { | |
| width: parent.width | |
| height: parent.height | |
| property alias model: columnRepeater.model | |
| Repeater { | |
| id: columnRepeater |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import struct | |
| from sys import stdin | |
| import os | |
| from io import FileIO | |
| hiddev = os.open("/dev/hidraw5", os.O_RDWR | os.O_NONBLOCK) | |
| pf = FileIO(hiddev, "wb+", closefd=False) | |
| #pf=open("ds_my.bin", "wb+") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # | |
| # DS4 report stuff | |
| # | |
| import struct | |
| from sys import stdin, argv | |
| import os | |
| from io import FileIO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * USB HID Keyboard scan codes as per USB spec 1.11 | |
| * plus some additional codes | |
| * | |
| * Created by MightyPork, 2016 | |
| * Public domain | |
| * | |
| * Adapted from: | |
| * https://source.android.com/devices/input/keyboard-devices.html | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- # | |
| from __future__ import unicode_literals | |
| # -------------------------------------- | |
| # Now compatible with Pelican 4.0.x! | |
| # -------------------------------------- | |
| # Added by me | |
| import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*++ | |
| Copyright (c) Microsoft Corporation. All rights reserved. | |
| Module Name: | |
| devpkey.h | |
| Abstract: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: EZRep Build | |
| on: | |
| push: | |
| branches: master | |
| jobs: | |
| build: | |
| runs-on: windows-latest |
