Results 1 to 5 of 5

Thread: as displaying an image in a mdi?

  1. #1
    Join Date
    Dec 2009
    Location
    Mexico
    Posts
    26
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question as displaying an image in a mdi?

    as displaying an image in a mdi?
    this is possible? some example.

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    506
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: as displaying an image in a mdi?

    Hi, have you already tried something? For displaying images QLabel should be sufficient.

    Ginsengelf

  3. #3
    Join Date
    Dec 2009
    Location
    Mexico
    Posts
    26
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: as displaying an image in a mdi?

    yes, I know that.
    I wondered, to see it the Gwenview, use the mdi?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: as displaying an image in a mdi?

    The Qwenview screenshot looks like a couple of QTabWidgets in a fixed ratio layout or separated by a QSplitter. The tabs contain QListViews in QListView::IconMode. I cannot see an obvious QMdiArea. However, I haven't looked at the actual source, which is something you could do to work out how they do it.

  5. #5
    Join Date
    Jul 2007
    Location
    Jundiai/SP, Brazil
    Posts
    114
    Thanks
    5
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: as displaying an image in a mdi?

    Hi Lycus,

    To display images, texts ... in MdiArea you should derive the class QMdiArea and reimplement the paintEvent(),
    just this. Inside of paintEvent() use QPainter to do job.

    cheers

Similar Threads

  1. Displaying image
    By Rui in forum Newbie
    Replies: 1
    Last Post: 20th June 2009, 21:15
  2. Regarding displaying image in grid.
    By prajna in forum Newbie
    Replies: 3
    Last Post: 20th February 2009, 19:39
  3. Displaying a portion of an image
    By tas in forum Qt Programming
    Replies: 4
    Last Post: 28th November 2008, 03:09
  4. Replies: 3
    Last Post: 25th August 2007, 16:53
  5. displaying png image for a given area..
    By sar_van81 in forum Qt Programming
    Replies: 1
    Last Post: 17th January 2007, 13:56

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.