Results 1 to 4 of 4

Thread: Picture Displaying Qt Desinger

  1. #1
    Join Date
    Jul 2015
    Posts
    16
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Windows

    Question Picture Displaying Qt Desinger

    Hi , i cannot find any item to be a picture viewer...
    I need a widget with access to clicked() signal.
    Which one will give me this option ?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Picture Displaying Qt Desinger

    QLabel can be used to display an image, or a pixmap item in a graphics scene, or any custom widget using QPainter to draw the image.

    Buttons have a clicked() signal, but you can add mouse event handling to whatever widget you have.

    Cheers,
    _

  3. #3
    Join Date
    Jul 2015
    Posts
    16
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Picture Displaying Qt Desinger

    Quote Originally Posted by anda_skoa View Post
    QLabel can be used to display an image, or a pixmap item in a graphics scene, or any custom widget using QPainter to draw the image.

    Buttons have a clicked() signal, but you can add mouse event handling to whatever widget you have.

    Cheers,
    _
    How to add the events ?

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Picture Displaying Qt Desinger

    By overwriting the virtual mousePressEvent() and mouseReleaseEvent() methods, potentially more if you need more advanced event handling.

    Cheers,
    _

Similar Threads

  1. Replies: 1
    Last Post: 15th July 2012, 12:12
  2. Replies: 3
    Last Post: 9th March 2012, 00:51
  3. problem with displaying QGLWidget in QWidget made in desinger
    By yasirsaleem in forum Qt Programming
    Replies: 4
    Last Post: 9th March 2011, 19:46
  4. port qt3 app to desinger 4 ui files
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 27th February 2007, 07:14
  5. Displaying picture included with html code
    By Djony in forum Qt Tools
    Replies: 1
    Last Post: 27th November 2006, 17:15

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.