Results 1 to 3 of 3

Thread: Custom Widget Visuals

  1. #1
    Join Date
    Apr 2010
    Posts
    152
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question Custom Widget Visuals

    I've created a custom widget that I can use in the Designer. However I cannot see it on forms or other widget when adding it until I click on it, how can I show any position/size guide for the widget so that I know it's there on a form, and it's dimensions? Or can I render it in a distinct color/image as an indicator? How?

    Help appreciated.

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Custom Widget Visuals

    Did you implement sizeHint() (and friends) for your widget?

  3. #3
    Join Date
    Apr 2010
    Posts
    152
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Custom Widget Visuals

    Yes I define an initial size, but my question which function to implement to get a visual clue of the control in the designer when placed in a form or so...?

Similar Threads

  1. Custom Widget
    By Frej in forum Qt Tools
    Replies: 27
    Last Post: 13th February 2010, 21:13
  2. Custom widget
    By zorro68 in forum Qt Programming
    Replies: 7
    Last Post: 28th January 2008, 14:06
  3. Replies: 1
    Last Post: 5th November 2006, 23:50
  4. Replies: 9
    Last Post: 8th May 2006, 14:21
  5. QT4: Custom widget for QT Designer
    By Michiel in forum Qt Tools
    Replies: 4
    Last Post: 4th May 2006, 13:35

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.