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
/**************************************************************************** | |
** | |
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). | |
** All rights reserved. | |
** Contact: Nokia Corporation ([email protected]) | |
** | |
** This file is part of the qmake application of the Qt Toolkit. | |
** | |
** $QT_BEGIN_LICENSE:LGPL$ | |
** GNU Lesser General Public License Usage |
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 MainWindow : public QDialog | |
{ | |
Q_OBJECT | |
public: | |
MainWindow() | |
{ | |
QPushButton *b; | |
setLayout(new QGridLayout); |
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(); |
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 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 <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 <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
[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
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
#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(); |
OlderNewer