Results 1 to 2 of 2

Thread: Unexpected Offset in paintEvent

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,311
    Thanks
    314
    Thanked 870 Times in 857 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Unexpected Offset in paintEvent

    You are using the QWidget::geometry() to paint the rect instead of the widget's position and size (QWidget::rect())
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. The following user says thank you to d_stranz for this useful post:

    shambalain61 (10th April 2021)

Similar Threads

  1. How to add a vertical offset to the plot
    By franco.amato in forum Qwt
    Replies: 0
    Last Post: 24th November 2019, 01:38
  2. Qt submenu offset issue
    By Alundra in forum Qt Programming
    Replies: 7
    Last Post: 10th October 2015, 10:17
  3. Timezone offset
    By pdoria in forum Qt Programming
    Replies: 5
    Last Post: 7th February 2014, 05:54
  4. qtextedit with offset
    By Michael_Levin in forum Newbie
    Replies: 1
    Last Post: 6th September 2012, 11:04
  5. QTableWidget, row offset
    By georgie in forum Qt Programming
    Replies: 2
    Last Post: 11th May 2006, 11:23

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
  •  
Qt is a trademark of The Qt Company.