Results 1 to 3 of 3

Thread: after rotation qml rectangle is flickering when it is dragged

  1. #1
    Join Date
    Aug 2012
    Posts
    29
    Thanked 2 Times in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default after rotation qml rectangle is flickering when it is dragged

    Hi all,

    my qml rectangle starts flickering when i try to drag it after rotation. without rotation if I drag it . it gets dragged very smoothly. can anyone tell me what can be the issue.
    also drag maximum and minimum is not working in both the case(with/without rotation).
    please help
    Thanks in advance

  2. The following 2 users say thank you to RJ for this useful post:

    talbertypeter (7th December 2013)

  3. #2
    Join Date
    Dec 2013
    Posts
    4
    Thanked 2 Times in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Default Re: after rotation qml rectangle is flickering when it is dragged

    Hi,

    could you share the corresponding code snippet and on which platform/Qt version you're trying?

    Alex

  4. The following 2 users say thank you to alexleutgoeb for this useful post:

    talbertypeter (7th December 2013)

  5. #3
    Join Date
    Aug 2012
    Posts
    29
    Thanked 2 Times in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: after rotation qml rectangle is flickering when it is dragged

    HI,

    I found the solution, had some parent issue. here is teh working code
    MouseArea
    {
    id: movingRegion
    width: qm_screenWidth // screen's width
    height: qm_screenHeight // screen's height
    drag.target: qmyAPP
    drag.axis: Drag.XandYAxis
    drag.minimumX: 0
    drag.minimumY: 0
    drag.maximumY: qm_screenHeight-qVlKHeight // qVKHeight and qVKWidth are the height and width of the moving rectangle
    drag.maximumX: qm_screenWidth-qVKWidth
    }

Similar Threads

  1. get a pixmap for a dragged QTreeWidgetItem?
    By qlands in forum Qt Programming
    Replies: 7
    Last Post: 18th September 2016, 07:33
  2. Replies: 1
    Last Post: 2nd July 2012, 03:54
  3. Replies: 0
    Last Post: 20th August 2010, 23:39
  4. Replies: 1
    Last Post: 15th August 2009, 11:23
  5. Mouse dragged widget without title
    By Tonal in forum Qt Programming
    Replies: 2
    Last Post: 14th November 2006, 12:28

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.