コンピュータ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コンピュータ