Results 1 to 2 of 2

Thread: using QGraphicsScene with QMdiArea

  1. #1
    Join Date
    Jan 2012
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default using QGraphicsScene with QMdiArea

    Hi,

    I'am trying to get a general sense of how i could use the functionality of QMdiArea with QGraphicsScene. The idea is to be able to animate my QDialog but also manage them inside QMdiArea. However the Qwidget can only be added to the QGraphicsScene(scene->addWidget) or QMdiArea(myarea->addSubWindow) but not both. Inheritance didnt work, I could have a list of my Qwidget that i move from one to the other but doesnt sound right.

    thanks

  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: using QGraphicsScene with QMdiArea

    I don't think this is directly possible.

    Depending on your needs you could just use a QGraphicsScene and implement MDI like behavior yourself.

    In general: are you sure you want to use an QMdiArea? It is one of the UI concepts everyone has moved away from over the last decade.

    Cheers,
    _

  3. The following 2 users say thank you to anda_skoa for this useful post:

    bossy (8th December 2013)

Similar Threads

  1. Replies: 1
    Last Post: 8th September 2012, 05:08
  2. QwtPlot3d and QMdiArea
    By YaK in forum Qwt
    Replies: 0
    Last Post: 17th March 2010, 04:53
  3. QMdiArea with Gridlayout
    By ericV in forum Qt Programming
    Replies: 0
    Last Post: 14th September 2009, 11:26
  4. QMdiArea
    By Programm3r in forum Qt Programming
    Replies: 0
    Last Post: 4th May 2009, 14:25
  5. layout in a QMdiArea
    By babu198649 in forum Newbie
    Replies: 2
    Last Post: 10th July 2008, 08:11

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
  •  
Qt is a trademark of The Qt Company.