This file contains 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 <QCoreApplication> | |
#include <QProcess> | |
#include <QDebug> | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication app(argc, argv); | |
QProcess process; | |
QObject::connect(&process, &QProcess::errorOccurred, [&process](){ |
This file contains 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
if [ ! -d "/home/qt/work/qt-dev" ]; then | |
cd /home/qt/work | |
git clone https://code.qt.io/qt/qt5.git qt-dev | |
cd qt-dev | |
perl init-repository --module-subset=qtbase | |
fi | |
mkdir /home/qt/work/qt-dev-release/ | |
mkdir /home/qt/work/qt-dev-release/qtbase | |
mkdir /home/qt/work/qt-dev-release/qtbase/build |
This file contains 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 <QtWidgets> | |
int main(int argc, char *argv[]) | |
{ | |
// QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar); | |
// QApplication::setAttribute(Qt::AA_DontUseNativeMenuWindows); | |
QApplication app(argc, argv); | |
QMainWindow mainWindow; |
This file contains 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 | |
import QtQuick.Layouts | |
import QtQuick.Controls | |
ApplicationWindow { | |
id: root | |
width: 640 | |
height: 480 | |
visible: true |
This file contains 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
// FrameAnimation that operates on a property, like NumberAnimation, | |
// except the duration and easing can be change while it's animating. | |
import QtQuick | |
import QtQuick.Controls | |
import QtQuick.Layouts | |
ApplicationWindow { | |
id: window | |
width: 640 |
This file contains 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
#! /bin/bash | |
# ~/Dropbox/dev/scripts/cmake/clean-rebuild-qt-cmake-linux.sh | |
set -e | |
set -o pipefail | |
topLevelSourceDir=$1 | |
topLevelBuildDir=$2 | |
configPath=$3 |
This file contains 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
#!/bin/bash | |
usageExample="Usage: cd ~/dev/qt-dev/qtdeclarative && git fetch && git reset --hard origin/dev && cd .. && qt-git-sync-to.sh qtdeclarative HEAD" | |
if [ -z "$1" ]; then | |
echo "module argument not supplied" | |
echo $usageExample | |
exit 1 | |
fi |
This file contains 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 <QtWidgets> | |
#include <QDebug> | |
int main(int argc, char *argv[]) | |
{ | |
QApplication app(argc, argv); | |
QMainWindow mainWindow; | |
QWidget *centralWidget = new QWidget; |
This file contains 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 | |
import QtQuick.Window | |
import Qt.labs.animation | |
Window { | |
width: 640 | |
height: 480 | |
visible: true | |
title: qsTr("Test") |
This file contains 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.15 | |
import QtQuick.Controls 2.15 | |
import QtQuick.Layouts 1.15 | |
ApplicationWindow { | |
id: window | |
width: 600 | |
height: 600 | |
visible: true | |
title: "colours" |
NewerOlder