abuleduboutonv0-test-4.patch
mainwindow.cpp 2010-11-14 22:54:04 +0000 | ||
---|---|---|
74 | 74 |
bouton3a->setImageNormal(QPixmap("./will-let.png")); |
75 | 75 |
bouton3a->setPos(50,50); |
76 | 76 |
bouton3a->setDragAndDrop(true); |
77 |
bouton3a->setPlainText("A"); |
|
77 | 78 |
dessin3->addItem(bouton3a); |
78 | 79 | |
79 | 80 |
AbulEduBoutonV0* bouton3b = new AbulEduBoutonV0("Drop"); |
80 | 81 |
bouton3b->QGraphicsItem::setCursor(Qt::PointingHandCursor); |
81 |
bouton3b->setPos(10,10); |
|
82 |
bouton3b->setPos(100,10);
|
|
82 | 83 |
bouton3b->setDebug(true); |
83 | 84 |
bouton3b->resize(50,50); |
84 | 85 |
bouton3b->setDragAndDrop(true); |
85 | 86 |
bouton3b->setHighlightColor("#aeffff"); |
87 |
bouton3b->setHtml("<h1>Bonjour</h1>"); |
|
88 |
bouton3b->setX(100); |
|
86 | 89 |
dessin3->addItem(bouton3b); |
87 | 90 | |
88 | 91 |
// ********************************* Fin Drag & Drop ************************************* // |