Skip to content

Instantly share code, notes, and snippets.

View mkmarineboy's full-sized avatar
🎯
Focusing

M mkmarineboy

🎯
Focusing
View GitHub Profile
@mkmarineboy
mkmarineboy / plugincontainer.cpp
Created August 9, 2020 00:27
Quick fix for QStringList list declaration
const QDir &PluginContainer::pluginDir()
{
static bool isLoaded = false;
static QDir path;
if (!isLoaded) {
isLoaded = true;
QString appDir = qApp->applicationDirPath();
QStringList list{};
#ifdef Q_OS_MAC
if (appDir == QLatin1String("MacOS")) {
Button {
z: 1
id: destroyButton
anchors.left: parent.left
anchors.top: parent.top
width: 150
text: "close window"
visible: buttonToggle
onClicked: {
sprite.destroy()