Results 1 to 3 of 3

Thread: How to create a movable border-less qmainwindow

  1. #1
    Join Date
    Jun 2011
    Location
    India
    Posts
    14
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question How to create a movable border-less qmainwindow

    Hi i want to create a border less main window. I used Qt::FramelessWindowHint and it gives a border less main window, but it is not movable. Can somebody tell me how to create a movable , borderless window

    Thanks

  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: How to create a movable border-less qmainwindow

    How have you implemented the moving?

    In a special "move handle" widget?
    In the main window itself?
    In an event filter?

    Cheers,
    _

  3. #3
    Join Date
    Jun 2011
    Location
    India
    Posts
    14
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to create a movable border-less qmainwindow

    I got the soltion, I called the move(QPoint) function within mousePressEvent()

Similar Threads

  1. Replies: 0
    Last Post: 14th February 2012, 11:03
  2. How to remove QMainWindow's title and border
    By meraj ansari in forum Qt Programming
    Replies: 1
    Last Post: 13th May 2010, 17:22
  3. Catch click/unclick event on QMainWindow border
    By thomaspu in forum Qt Programming
    Replies: 1
    Last Post: 20th February 2008, 23:09
  4. QMainWindow movable while maximized?
    By Byngl in forum Qt Programming
    Replies: 3
    Last Post: 5th June 2007, 19:42
  5. How to create a movable border between two widgets?
    By Teuniz in forum Qt Programming
    Replies: 2
    Last Post: 16th March 2007, 08:45

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.