Results 1 to 4 of 4

Thread: Drawing icon on QwtPlot

  1. #1
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Drawing icon on QwtPlot

    Hi,
    I'm facing a problem. I want to draw some pictures(32x32) on the QwtPlot. Is it possible it has something to do means the Qwt library?

    Thanks by advance.

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

    Default Re: Drawing icon on QwtPlot

    If it is related to plot coordinates you could use a marker ( with a symbol ). If not you might have to implement a trivial custom plot item that would consist of some layout code around QPainter::drawPixmap().

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    gorec323 (25th December 2015)

  4. #3
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Drawing icon on QwtPlot

    Quote Originally Posted by Uwe View Post
    If it is related to plot coordinates you could use a marker ( with a symbol ). If not you might have to implement a trivial custom plot item that would consist of some layout code around QPainter::drawPixmap().

    Uwe
    Thank you very much.

  5. #4
    Join Date
    Sep 2011
    Posts
    86
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Drawing icon on QwtPlot

    Or You can put QLabel on plot, I've done this with QPushButtons. You can inherit class from QwtPlot and add your own Widgets to it. you treat QwtPlot like a normal QWidget and set widgets as its children.

Similar Threads

  1. Replies: 1
    Last Post: 26th May 2015, 07:34
  2. QTabWidget Place icon with no text and stretch icon over tab
    By alenn.masic in forum Qt Programming
    Replies: 2
    Last Post: 11th April 2013, 12:25
  3. Drawing Rect on QwtPlot
    By baray98 in forum Qwt
    Replies: 4
    Last Post: 26th October 2012, 16:34
  4. Replies: 6
    Last Post: 14th May 2009, 12:02
  5. Couple of questions: main window icon + toolbar icon
    By bpackard in forum Qt Programming
    Replies: 0
    Last Post: 20th March 2008, 19:03

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.