Skip to content

Instantly share code, notes, and snippets.

View amfasis's full-sized avatar

Sander van der Horst amfasis

  • Netherlands
View GitHub Profile
@amfasis
amfasis / main.qml
Created September 11, 2019 08:10
compiz like page transition
import QtQuick 2.12
import QtQuick.Window 2.12
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
Rectangle {
import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.5
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
@amfasis
amfasis / main.cpp
Created March 19, 2019 12:33
StackOverflow - Create ListView/ListModel from a vector of strings
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include "myClass.h"
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);