Results 1 to 3 of 3

Thread: How to jump from QGraphicsItem::keyPressEvent txt to a new QGraphicsItem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to jump from QGraphicsItem::keyPressEvent txt to a new QGraphicsItem

    I have a problem on my QGraphicsScene

    the QGraphicsScene have many page section/Virtual draw as printer size
    "A4 (210 x 297 mm, 8.26 x 11.7 inches , QPrinter::A4; or other user define size.

    By typing text on Layer QGraphicsItem i have any time the correct QRectF from page. And avaiable line to write.
    Now how i can jump to a new QGraphicsItem (as new page A4) and focus him? Any idea?

    Any Page contain many textlayer of type:
    Qt Code:
    1. enum LAYERTYPE {
    2. DIV_ABSOLUTE = 50, /* position fixed x y*/
    3. DIV_AUTO,/* 51 */ /* auto floating */
    4. DIV_FLOAT,/* 52 */ /* left, right to parent */
    5. DIV_HEADER, /* 53 */ /* page header child s 51 */
    6. DIV_FOOTER /* 54 */ /* page footer */
    7. };
    To copy to clipboard, switch view to plain text mode 
    Last edited by patrik08; 28th June 2008 at 11:15. Reason: spelling error

Similar Threads

  1. QGraphicsItem doesn't inherit QObject?
    By xyzt in forum Qt Programming
    Replies: 6
    Last Post: 26th September 2011, 14:59
  2. destruction of QGraphicsItem
    By killkolor in forum Qt Programming
    Replies: 2
    Last Post: 5th December 2009, 10:31
  3. Snap-to grid on QGraphicsItem
    By hardgeus in forum Qt Programming
    Replies: 9
    Last Post: 28th April 2008, 16:22
  4. Force the painting of a QGraphicsItem
    By fabietto in forum Qt Programming
    Replies: 3
    Last Post: 2nd July 2007, 21:28
  5. Deleting a scene from QGraphicsItem mouseEvent
    By JonathanForQT4 in forum Qt Programming
    Replies: 5
    Last Post: 10th April 2007, 11:27

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.