Results 1 to 4 of 4

Thread: AlignAbsolute - QGraphicsLayoutItem

  1. #1
    Join Date
    Jan 2010
    Location
    Turkey
    Posts
    39
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question AlignAbsolute - QGraphicsLayoutItem

    Hi

    I have four QGraphicsLinearLayout items all contaning bunch of QGraphicsWidgetItems.
    I have one QGraphicsGridLayout item.

    Is it possible to align linear layouts on grid to absolute positions. If possible how?
    Last edited by onurozcelik; 19th April 2010 at 08:04. Reason: updated contents

  2. #2
    Join Date
    Jan 2010
    Location
    Turkey
    Posts
    39
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: AlignAbsolute - QGraphicsLayoutItem

    Guys,

    Here is what I want.hereiswhatiwant..jpg

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: AlignAbsolute - QGraphicsLayoutItem

    Quote Originally Posted by onurozcelik View Post
    Here is what I want.
    So why you don't do it? You set your layout to a QGraphicsWidget and this is a normal item so that you can use QGraphicsItem::setPos().

  4. #4
    Join Date
    Jan 2010
    Location
    Turkey
    Posts
    39
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: AlignAbsolute - QGraphicsLayoutItem

    If I set linear layouts to a graphicswidgets and then set their positions with
    Qt Code:
    1. QGraphicsItem::setPos().
    To copy to clipboard, switch view to plain text mode 
    it is working.
    But when I put graphicswidgets inside another layout suppose QGraphicsGridLayout same method is not working.

Similar Threads

  1. Replies: 1
    Last Post: 23rd February 2010, 15:57
  2. heightForWidth QGraphicsLayoutItem
    By bunjee in forum Qt Programming
    Replies: 0
    Last Post: 20th October 2009, 09:14
  3. Subclassing QGraphicsTextItem and QGraphicsLayoutItem
    By psih128 in forum Qt Programming
    Replies: 2
    Last Post: 15th October 2008, 20:12

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.