Results 1 to 3 of 3

Thread: How to attach png files to qwtplot

  1. #1
    Join Date
    Jan 2014
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to attach png files to qwtplot

    Is it possible to use png files in QwtPlot? Normally i can use svg files in my plots with QwtPlotSvgitem class but i could not succeed with these png files. Please give me a clue about that.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,309
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to attach png files to qwtplot

    How do you want to use your png files: somehow related to plot coordinates - or a label somewhere in a corner / like a watermark ) independent from the current ranges of the axis scales ?

    Uwe

  3. #3
    Join Date
    Jan 2014
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to attach png files to qwtplot

    Qt Code:
    1. QPixmap pixmap(":image");
    2.  
    3. QwtSymbol *symbol = new QwtSymbol;
    4. symbol->setPixmap(pixmap);
    5.  
    6. marker->setSymbol( symbol);
    7. marker->attach(this);
    To copy to clipboard, switch view to plain text mode 


    this method works for attaching files(.png, jpeg ...)

Similar Threads

  1. attach libraries to exe
    By szisziszilvi in forum Qt Programming
    Replies: 2
    Last Post: 20th April 2011, 15:23
  2. attach the files in the document
    By rleojoseph in forum Qt Programming
    Replies: 5
    Last Post: 1st March 2011, 08:25
  3. Cannot attach QScrollBar to QwtPlot
    By mohini in forum Qwt
    Replies: 4
    Last Post: 6th January 2011, 06:05
  4. QSharedMemory won't attach
    By MattPhillips in forum Qt Programming
    Replies: 3
    Last Post: 27th November 2009, 16:45

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.