Results 1 to 7 of 7

Thread: QGraphicsLayout - same widths and heights for all cells, two items in the same cell

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Jan 2009
    Location
    Czech Republic
    Posts
    26
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    4

    Default Re: QGraphicsLayout - same widths and heights for all cells, two items in the same ce

    You are right, that should do it


    Quote Originally Posted by Lykurg View Post
    Ah, you are talking about graphic items not layout items... So there is no problem: arrange the three items in a QGraphicsItemGroup, then they behave like one item.
    This should work
    I have one more and hopefully last question. If I create QGraphicsItemGroup of 2 items which are inheriting both from QGraphicsSvgItem and QGraphicsLayoutItem (which should give it the capabily to be added to QGraphicsLayouts) I will have to reimplement the QGraphicsItemGroup so that it inherits from QGraphicsLayoutItem as well to be able to add it to QGraphicsLayout, would not I (not that it would much of a problem... but still )?
    Last edited by Palmik; 16th February 2010 at 18:29.

Similar Threads

  1. Forcing equal row heights in QTableWidget
    By wssddc in forum Newbie
    Replies: 2
    Last Post: 2nd November 2009, 01:16
  2. QGraphicsLayout::geometry()
    By isutruk in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2009, 15:43
  3. Extending QGraphicsLayout
    By Darkman in forum Qt Programming
    Replies: 0
    Last Post: 13th March 2009, 12:09
  4. auto resizing column/row widths
    By raman_31181 in forum Qt Programming
    Replies: 2
    Last Post: 11th September 2008, 18:16
  5. QTableView row heights
    By Brandybuck in forum Qt Programming
    Replies: 8
    Last Post: 7th November 2006, 03:08

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