Results 1 to 17 of 17

Thread: Drawing a rectangle over Qlabel image

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2011
    Posts
    18
    Qt products
    Qt4
    Thanks
    1

    Default Re: Drawing a rectangle over Qlabel image

    It might be plain c++ to you but i dont really study much of it cos all i was thought is those simple cin cout etc. this is the first time dealing with this so im here asking for help. but anyway, thanks for your replies.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Drawing a rectangle over Qlabel image

    We can't assume here that you know nothing of programming when writing our replies, we have to assume you know how to program and you only have problems with using Qt. You need a decent knowledge of C++ to be able to use Qt efficiently. So far it seemed you didn't have problems with programming as such so it was safe to assume you just didn't notice you were using a local variable or that you didn't know it mattered.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2011
    Posts
    18
    Qt products
    Qt4
    Thanks
    1

    Default Re: Drawing a rectangle over Qlabel image

    im able to draw over the image now but how do i put it to keep refreshing and change its position ?? I was thinking of putting while loop at first but it will just keep looping the same thing. any idea?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Drawing a rectangle over Qlabel image

    Use QGraphicsItem::setPos() to modify the position of an item.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Drawing over an image displayed on a QLabel
    By franco.amato in forum Qt Programming
    Replies: 10
    Last Post: 25th August 2010, 06:40
  2. Prevent QStyledItemDelegate from drawing focus rectangle
    By stefanadelbert in forum Qt Programming
    Replies: 4
    Last Post: 15th July 2010, 10:43
  3. problem in drawing image in QLabel!
    By mismael85 in forum Qt Programming
    Replies: 2
    Last Post: 28th March 2010, 16:16
  4. Drawing a selection rectangle
    By Caius Aérobus in forum Qt Programming
    Replies: 7
    Last Post: 4th April 2009, 16:47
  5. Replies: 3
    Last Post: 4th June 2007, 10:51

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.