Results 1 to 2 of 2

Thread: Set Position of QLabel

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Posts
    116
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Smile Set Position of QLabel

    Hi ,


    I have set small image to QPixmap of QLabel.

    Now I want to move this Pixmap horizontally up and back .

    How to set position of QLabel for performing this??????

  2. #2
    Join Date
    Mar 2009
    Posts
    116
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Set Position of QLabel



    Hey I got the solution



    Label->setGeometry(QRect(312-k, 454, 21, 20));



    Happy Coding....

Similar Threads

  1. QLabel selection: start and end position?
    By truefusion in forum Qt Programming
    Replies: 2
    Last Post: 18th January 2009, 02:00
  2. Replies: 3
    Last Post: 17th July 2008, 07:43
  3. Position of text in a qlabel
    By jiveaxe in forum Qt Programming
    Replies: 1
    Last Post: 25th May 2008, 13:26
  4. QLabel ScaledContents ignored by style sheet?
    By WinchellChung in forum Newbie
    Replies: 3
    Last Post: 27th February 2008, 14:50
  5. Clearing a QLabel since the mouse position
    By SkripT in forum Qt Programming
    Replies: 10
    Last Post: 18th January 2006, 18:23

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.