Results 1 to 3 of 3

Thread: what's the difference betwwen rect() and geometry()?

  1. #1
    Join Date
    Dec 2010
    Posts
    12
    Thanks
    3
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Question what's the difference betwwen rect() and geometry()?

    what's the difference betwwen rect() and geometry()?

  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: what's the difference betwwen rect() and geometry()?

    have you tried to read the Window Geometry chapter of QtAssistant?

  3. #3
    Join Date
    Dec 2011
    Posts
    2
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: what's the difference betwwen rect() and geometry()?

    from qt assistant:
    The rect property equals QRect(0, 0, width(), height()).
    This property holds the geometry of the widget relative to its parent and excluding the window frame.

    example:
    suppose a pushbutton is in a mainwindow:
    geometry() QRect(90,50 121x91)
    size() QSize(121, 91)
    rect() QRect(0,0 121x91)
    width() 121
    height() 91

    please see the doc first.

Similar Threads

  1. Geometry shader with QT4.7
    By saraksh in forum General Programming
    Replies: 3
    Last Post: 28th March 2011, 16:40
  2. QGroupBox elements geometry
    By qt_gotcha in forum Newbie
    Replies: 1
    Last Post: 29th May 2010, 07:16
  3. QGraphicsLayout::geometry()
    By isutruk in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2009, 15:43
  4. Adding 3 words to Button with specified length betwwen words
    By chikkireddi in forum Qt Programming
    Replies: 1
    Last Post: 26th October 2007, 11:08
  5. Setting QMessageBox geometry
    By Krish_ng in forum Qt Programming
    Replies: 3
    Last Post: 25th July 2007, 14:47

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.