Results 1 to 5 of 5

Thread: Problem in paintEvent()

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    120
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    9

    Default Re: Problem in paintEvent()

    Thanks for reply.

    Yes you are right when i set my widget as centralwidget of window it appeares. But the problem is that i have to make saveral instances of the widget and then arrange all of them in a gridlayout.If i set widget as central widget then rest of them will not visible so how i should solve this problem.I have to create several instances at a time of widget.
    Waiting for reply.
    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Problem in paintEvent()

    Then use the custom widget approach and use it where ever you like (promote to in designer for example)

  3. #3
    Join Date
    May 2011
    Posts
    120
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    9

    Default Re: Problem in paintEvent()

    Ok
    But can you tell me how i customize my painted button with Qt designer.
    Thanks.

Similar Threads

  1. paintEvent method problem
    By zgulser in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2010, 12:32
  2. paintEvent problem
    By di_zou in forum Newbie
    Replies: 5
    Last Post: 2nd September 2009, 16:13
  3. Problem with QListWidget and paintEvent()
    By joksi in forum Qt Programming
    Replies: 2
    Last Post: 29th May 2009, 10:50
  4. paintEvent problem
    By anafor2004 in forum Newbie
    Replies: 1
    Last Post: 29th June 2008, 14:18
  5. paintEvent problem
    By MoaLaiSkirulais in forum Qt Programming
    Replies: 5
    Last Post: 12th February 2008, 13:59

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.