PySide6

コンピュータ

PySide6でツールバーにSVG画像をアイコンとして配置したボタンのサンプル【QToolTip】

ツールバーにSVG画像をアイコンとして配置したボタンのサンプルimport sysfrom PySide6.QtWidgets import QApplication, QMainWindow, QToolBar, QPushButton,...
コンピュータ

PySide6でメニューとステータスバーのサンプル【QAction】

メニューとステータスバーのサンプルスクリプトです。import sysfrom PySide6.QtWidgets import (QApplication, QMainWindow)from PySide6.QtGui import (Q...
コンピュータ

PySide6でタブウィジェットのサンプル【QTabWidget】

タブウィジェットを使ったサンプルです。import sysfrom PySide6.QtWidgets import QApplication, QWidget, QTabWidget, QVBoxLayout, QLabelclass M...
コンピュータ

PySide6で画像ファイルをドラックアンドドロップで表示する【QPixmap】

QPixmapのサンプルです。import sysfrom PySide6.QtWidgets import QApplication, QLabel, QWidget, QVBoxLayoutfrom PySide6.QtGui impo...
コンピュータ

PySide6でツリービューのサンプル【QTreeView】

ツリービューとリストビューでファイルマネージャーぽくフォルダを移動するサンプルプログラムです。import sysimport osfrom PySide6.QtWidgets import (QApplication, QWidget, ...
コンピュータ

PySide6のリストビューのサンプル【QListView】

QListViewのサンプルスクリプトです。import sysfrom PySide6.QtWidgets import QApplication,QMainWindow,QVBoxLayout, QWidget,QHBoxLayoutf...
コンピュータ

PySide6でテキスト行入力とテキスト変更イベント【QLineEdit】

QLineEditサンプルプログラムです。import sysfrom PySide6.QtWidgets import QApplication, QWidget, QLineEdit, QVBoxLayoutclass MainWind...
コンピュータ

PySide6でプッシュボタンとクリックシグナル【QPushButton】

プッシュボタンのサンプルを作ります。import sysfrom PySide6.QtWidgets import QApplication,QMainWindow, QVBoxLayout, QWidgetfrom PySide6.QtW...
コンピュータ

PySide6でウィジェット分割しサイズを変更可能にする【QSplitter】

まずはサンプルスクリプトを実行してみます。import sysfrom PySide6.QtWidgets import QApplication,QMainWindow,QSplitter,QPushButton, QVBoxLayout...
コンピュータ

PySide6でウィンドウの作成【QMainWindow】

ドラックアンドドロップの方法を確認出来たので、アプリケーション作成に向けてでウィンドウを作成してみたいと思います。Qtではウィンドウを使わずラベル直接表示出来て驚きましたが、今回はベースとなるウィンドウのお話になります。ウィンドウの表示im...
コンピュータ

PySide6のWidgetから他のアプリ(エクスプローラーなど)へファイルをドラックアンドドロップ

PySide6を始めようと思い、最初にドラックアンドドロップ機能を確認したいと思います。他のアプリケーションとのデータ連携にドラックアンドドロップがありますが、PySide6のアプリから他のアプリケーション(今回はWindowsのエクスプロ...