PDA

View Full Version : Problem wirh Drag and Drop for QWT Graph



Ankitha Varsha
22nd January 2008, 13:13
Hi,

I am trying to drag the graph which is plotted on a widget using QWT to a word document.

canvas->paintCache returns pointer to QPixmap.
I am using this pixmap to set as Image data to QMimeData.

When I actually drop the QMimeData to the word document, I can see only the curves. Axis ,Labels and Legends are not dragged/copied at all from my qwt graph to the word document!.

I have not implemented this feature before, hence I am wondering whether my logic is right with respect to Drag and Drop of QWT graphs.

Kindly let me know.

Regards,
Ankitha

Ankitha Varsha
22nd January 2008, 13:23
Forgot to mention that I am using Qt4.3

Hi,

I am trying to drag the graph which is plotted on a widget using QWT to a word document.

canvas->paintCache returns pointer to QPixmap.
I am using this pixmap to set as Image data to QMimeData.

When I actually drop the QMimeData to the word document, I can see only the curves. Axis ,Labels and Legends are not dragged/copied at all from my qwt graph to the word document!.
I am wondering whether or not legends,axis and labels are part of canvas?
If not, How do i get hold of those things as well along with my graph so that i can drag and drop them in the word document.

I have not implemented this feature before, hence I am wondering whether my logic is right with respect to Drag and Drop of QWT graphs.

Kindly let me know.

Regards,
Ankitha