Results 1 to 2 of 2

Thread: Qdialog movement in midiarea

  1. #1
    Join Date
    Sep 2014
    Posts
    10
    Thanks
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Qdialog movement in midiarea

    Hi.,

    i want to restrict the movement of my dialog window inside the Midiarea. please help...
    Capture.jpg
    here the laser navigator is outside the midiarea I dont want it to go outside ever.
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qdialog movement in midiarea

    You could try overwriting the dialog's moveEvent() handler and when you detect a move outside your target area you trigger a move back.

    Cheers,
    _

Similar Threads

  1. How can I have a Progressbar with movement
    By roseicollis in forum Qt Programming
    Replies: 9
    Last Post: 9th January 2015, 16:05
  2. Replies: 1
    Last Post: 26th March 2013, 02:04
  3. QWidget movement
    By fakefish in forum Qt Programming
    Replies: 8
    Last Post: 19th April 2011, 12:02
  4. Replies: 9
    Last Post: 25th March 2011, 21:22
  5. QDialog.exec() exiting without calling QDialog::accept()
    By doggrant in forum Qt Programming
    Replies: 3
    Last Post: 2nd February 2011, 11:35

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.