Results 1 to 2 of 2

Thread: qframe position

  1. #1
    Join Date
    Mar 2013
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default qframe position

    Hi
    I'm using 2 frames in a dialog as placeholders.
    How can I find the position of each frame?
    ie
    frame1.x() is 0
    frame2.x() is also 0
    but what I want is frame1 is at (say) 0,0
    frame2 is at (say) 275,0

    I draw qimages on the dialog. having the whole repaint/draw infrastructure for each frame seems like hard work
    If i put the image in a qrect at 0,0 and another at 275,0 all works until you resize the dialog

    Thanks
    James

  2. #2
    Join Date
    Dec 2012
    Posts
    90
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5
    Thanked 20 Times in 18 Posts

    Default Re: qframe position

    You can use designer to put a pair of QLabel-s inside layout, then use setPixmap for each label.

Similar Threads

  1. view position of mouse position in GraphicsScene
    By Raghaw in forum Qt Programming
    Replies: 2
    Last Post: 23rd August 2012, 05:46
  2. QFrame
    By Johnnyj2j in forum Newbie
    Replies: 7
    Last Post: 21st July 2012, 13:03
  3. Replies: 1
    Last Post: 10th July 2012, 16:19
  4. Using css for all QFrame's except one.
    By babu198649 in forum Newbie
    Replies: 2
    Last Post: 10th July 2008, 09:05
  5. Reg - QFrame
    By suresh in forum Qt Programming
    Replies: 1
    Last Post: 1st November 2006, 05:34

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.