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/QWidget> | |
#include <QtWidgets/QApplication> | |
#include <QtWidgets/QHBoxLayout> | |
#include <QtWidgets/QVBoxLayout> | |
#include <QtWidgets/QPlainTextEdit> | |
#include <QtWidgets/QLineEdit> | |
#include <QtCore/QDebug> | |
class MyWidget : public QWidget { | |
Q_OBJECT |
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 <QtCore/QCoreApplication> | |
#include <QtCore/QJsonObject> | |
#include <QtCore/QJsonDocument> | |
#include <QtCore/QJsonValue> | |
#include <QtCore/QDateTime> | |
#include <QtCore/QDebug> | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); |
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/QApplication> | |
#include <QtWidgets/QGraphicsScene> | |
#include <QtWidgets/QGraphicsView> | |
#include <QtGui/QPixmap> | |
#include <QtWidgets/QGraphicsPixmapItem> | |
#include <QtCore/QDebug> | |
namespace { | |
static constexpr int FilePathKey = 1; | |
void func1(); |
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.9 | |
import QtQuick.Window 2.2 | |
Window { | |
visible: true | |
width: 640 | |
height: 480 | |
title: qsTr("Fuge List") | |
ListView { | |
anchors.fill: parent |
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
[Localization] | |
CustomRes0009=Bin\data0009.dll | |
Languages=0009 | |
[Distribution] | |
Title=1 | |
GUID={EB46B9B1-1E60-4C03-0009-AD9EBCCC0B3B} | |
PackageGUID={04D03790-80E7-46BE-B85A-12036FEEFB1B} | |
Version=1.2.0 | |
IDPath=nidist.id |
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 <QApplication> | |
#include <QtWidgets> | |
#include <QtCore> | |
#include <QtGui> | |
class MyView : public QGraphicsView | |
{ | |
Q_OBJECT | |
public: | |
MyView() { |
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 <QtGui> | |
int main(int argc, char **argv) | |
{ | |
QApplication app(argc, argv); | |
QListView view; | |
QFileSystemModel *model = new QFileSystemModel(&view); | |
model->setRootPath("~/"); | |
view.setModel(model); |
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 <QtGui> | |
class GraphicsView : public QGraphicsView | |
{ | |
Q_OBJECT | |
public: | |
GraphicsView(QWidget *parent = 0) : QGraphicsView(parent), mousePressed_(false) | |
{ | |
init(); |
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 <QTableWidget> | |
#include <QDateTime> | |
#include <QApplication> | |
static void init(QTableWidget &w) { | |
w.setSortingEnabled(true); | |
w.setRowCount(10); | |
w.setColumnCount(10); | |
w.resize(640, 480); |
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 <QtGui> | |
class Window : public QGraphicsView | |
{ | |
Q_OBJECT | |
public: | |
Window() { | |
setScene(new QGraphicsScene(-200, -200, 400, 400)); | |
setDragMode(ScrollHandDrag); | |
drawMesh(); |
NewerOlder