Results 1 to 2 of 2

Thread: Window position at TopRight Corner

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Location
    Pune, India
    Posts
    60
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Window position at TopRight Corner

    I have developed application using GraphicsView/Scene architecture.
    I have inset window (a small window of size e.g. 150 X 150 ) showing content of GraphicsView's scene.
    Now I want that should postion always on Top Right corner of Main window.
    How to fix a posotion of inset window ? Even if resize or move Main window the inset window should also get moved.
    Please tell me the solution for the same ??
    Thanks in advance.

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Window position at TopRight Corner

    you can reimplement the resize event and move the child window to right corner. or you can use a layout with streches at left and bottom so that it wil always be at top right

Similar Threads

  1. Set a window as child at runtime
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 26th November 2007, 09:30
  2. Replies: 3
    Last Post: 23rd November 2007, 11:40
  3. Fixing default Window position with move.
    By VireX in forum Qt Programming
    Replies: 4
    Last Post: 3rd April 2007, 21:13
  4. Setting the starting position of Main Window
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 20th December 2006, 12:17
  5. positioning a window at a specific screen position
    By nupul in forum Qt Programming
    Replies: 3
    Last Post: 29th March 2006, 20:21

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.