{"author_name":"amagitakayosi","url":"https://blog.amagi.dev/entry/20121213/1355412991","provider_url":"https://hatena.blog","height":"190","type":"rich","author_url":"https://blog.hatena.ne.jp/amagitakayosi/","version":"1.0","description":"\u6628\u65e5\u306e\u3084\u3064\u306b \u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u51e6\u7406 \u30c9\u30e9\u30c3\u30b0\u306b\u3088\u308b\u79fb\u52d5 \u3092\u8ffd\u52a0\u3057\u305f #include <QtGui> class MyPixmapItem : public QGraphicsPixmapItem { private: bool isDragged; // \u30c9\u30e9\u30c3\u30b0\u4e2d\u30d5\u30e9\u30b0 QPoint mpos, wpos; // \u30c9\u30e9\u30c3\u30b0\u958b\u59cb\u6642\u70b9\u306e\u30de\u30a6\u30b9\u4f4d\u7f6e\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u4f4d\u7f6e public: MyPixmapItem( const QPixmap &pixmap, QGraphicsItem *parent, QGraphicsScene *scene ); protected: void mousePre\u2026","categories":["Qt","C++"],"title":"QGraphicsView\u306b\u304a\u3051\u308b\u30a4\u30d9\u30f3\u30c8\u51e6\u7406","blog_url":"https://blog.amagi.dev/","published":"2012-12-13 00:36:31","blog_title":"\u30de\u30eb\u30b7\u30c6\u30a4\u30a2","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.amagi.dev%2Fentry%2F20121213%2F1355412991\" title=\"QGraphicsView\u306b\u304a\u3051\u308b\u30a4\u30d9\u30f3\u30c8\u51e6\u7406 - \u30de\u30eb\u30b7\u30c6\u30a4\u30a2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","provider_name":"Hatena Blog"}