Results 1 to 2 of 2

Thread: How can I change widget images and layouts?

  1. #1
    Join Date
    May 2008
    Posts
    3
    Thanks
    1
    Qt products
    Platforms
    Unix/X11 Windows

    Default How can I change widget images and layouts?

    All widget have layouts and images in itself.
    I'd like to change the layouts and images to mine.

    How can I implement it?
    Should I just reimplement 'paintEvent' ?

    Please any suggestion...

    Thank you

  2. #2
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default Re: How can I change widget images and layouts?

    If you want to change widget's background.

    Reimplement paintEvent, draw your QPixmap using rect() coordinates.

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.