Results 1 to 8 of 8

Thread: Custom Shape Widget (resize)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2007
    Posts
    28
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Custom Shape Widget (resize)

    Yes, but that wont give me the custom shape given by the alphas of the image, it will just return the actual size all the child's, wish are square.
    So I need to do this with and image. Do someone know if support for svg images is good with qt?
    Could I use svg images just like regular pixmaps?
    Thanks
    CJC.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Custom Shape Widget (resize)

    Quote Originally Posted by PiXeL16 View Post
    Yes, but that wont give me the custom shape given by the alphas of the image, it will just return the actual size all the child's, wish are square.
    But if you are using images, then there shouldn't be any problem... Just make sure you create the mask from the image you will actually display (so don't scale twice - once for the image itself and once for the mask - use the already scaled image). I think there are examples on the forum how to do that. Could you show the actual code which doesn't work for you?

    So I need to do this with and image. Do someone know if support for svg images is good with qt?
    Depends what you mean by "good"

    Could I use svg images just like regular pixmaps?
    No, these are not pixmaps. You'd have to do a conversion first.

Similar Threads

  1. Replies: 1
    Last Post: 5th November 2006, 23:50
  2. Problem applying setWindowOpacity to a custom Widget
    By yellowmat in forum Qt Programming
    Replies: 8
    Last Post: 1st November 2006, 10:05
  3. Custom Widget Plugin Analog Clock
    By kemp in forum Qt Programming
    Replies: 8
    Last Post: 11th August 2006, 13:22
  4. Replies: 3
    Last Post: 12th April 2006, 08:20
  5. Replies: 4
    Last Post: 24th March 2006, 22:50

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.