コンピュータ PySide6でツールバーにSVG画像をアイコンとして配置したボタンのサンプル【QToolTip】 ツールバーにSVG画像をアイコンとして配置したボタンのサンプルimport sysfrom PySide6.QtWidgets import QApplication, QMainWindow, QToolBar, QPushButton,... 2025.02.18 コンピュータ
コンピュータ PySide6でメニューとステータスバーのサンプル【QAction】 メニューとステータスバーのサンプルスクリプトです。import sysfrom PySide6.QtWidgets import (QApplication, QMainWindow)from PySide6.QtGui import (Q... 2025.02.17 コンピュータ
コンピュータ PySide6でタブウィジェットのサンプル【QTabWidget】 タブウィジェットを使ったサンプルです。import sysfrom PySide6.QtWidgets import QApplication, QWidget, QTabWidget, QVBoxLayout, QLabelclass M... 2025.02.16 コンピュータ
コンピュータ PySide6で画像ファイルをドラックアンドドロップで表示する【QPixmap】 QPixmapのサンプルです。import sysfrom PySide6.QtWidgets import QApplication, QLabel, QWidget, QVBoxLayoutfrom PySide6.QtGui impo... 2025.02.14 コンピュータ
コンピュータ PySide6でツリービューのサンプル【QTreeView】 ツリービューとリストビューでファイルマネージャーぽくフォルダを移動するサンプルプログラムです。import sysimport osfrom PySide6.QtWidgets import (QApplication, QWidget, ... 2025.02.13 コンピュータ
コンピュータ PySide6のリストビューのサンプル【QListView】 QListViewのサンプルスクリプトです。import sysfrom PySide6.QtWidgets import QApplication,QMainWindow,QVBoxLayout, QWidget,QHBoxLayoutf... 2025.02.12 コンピュータ
コンピュータ PySide6でテキスト行入力とテキスト変更イベント【QLineEdit】 QLineEditサンプルプログラムです。import sysfrom PySide6.QtWidgets import QApplication, QWidget, QLineEdit, QVBoxLayoutclass MainWind... 2025.02.10 コンピュータ
コンピュータ PySide6でプッシュボタンとクリックシグナル【QPushButton】 プッシュボタンのサンプルを作ります。import sysfrom PySide6.QtWidgets import QApplication,QMainWindow, QVBoxLayout, QWidgetfrom PySide6.QtW... 2025.02.09 コンピュータ
コンピュータ PySide6でウィジェット分割しサイズを変更可能にする【QSplitter】 まずはサンプルスクリプトを実行してみます。import sysfrom PySide6.QtWidgets import QApplication,QMainWindow,QSplitter,QPushButton, QVBoxLayout... 2025.02.08 コンピュータ
コンピュータ PySide6でウィンドウの作成【QMainWindow】 ドラックアンドドロップの方法を確認出来たので、アプリケーション作成に向けてでウィンドウを作成してみたいと思います。Qtではウィンドウを使わずラベル直接表示出来て驚きましたが、今回はベースとなるウィンドウのお話になります。ウィンドウの表示im... 2025.02.07 コンピュータ
コンピュータ PySide6のWidgetから他のアプリ(エクスプローラーなど)へファイルをドラックアンドドロップ PySide6を始めようと思い、最初にドラックアンドドロップ機能を確認したいと思います。他のアプリケーションとのデータ連携にドラックアンドドロップがありますが、PySide6のアプリから他のアプリケーション(今回はWindowsのエクスプロ... 2025.02.05 コンピュータ