<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dungeonneko</author_name>
  <author_url>https://blog.hatena.ne.jp/dungeonneko/</author_url>
  <blog_title>Hello World / plɹoM ollǝH</blog_title>
  <blog_url>https://dungeonneko.hatenablog.com/</blog_url>
  <categories>
    <anon>PySide</anon>
  </categories>
  <description>Qt (PySide) は一部のWidget以外でドラッグ開始を実装しようとすると意外と面倒 ググると大体受け入れる側のサンプル出てきちゃうし class MyButton(QPushButton): def __init__(self, parent): super().__init__(parent) self._startPos = QPoint() def mousePressEvent(self, event): if event.button() == Qt.LeftButton: self._startPos = event.pos() super().mousePressEve…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdungeonneko.hatenablog.com%2Fentry%2F2020%2F02%2F14%2F173612&quot; title=&quot;PySide drag start from QPushButton - Hello World / plɹoM ollǝH&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-02-14 17:36:12</published>
  <title>PySide drag start from QPushButton</title>
  <type>rich</type>
  <url>https://dungeonneko.hatenablog.com/entry/2020/02/14/173612</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
