Results 1 to 5 of 5

Thread: Style size of elements

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2008
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    4

    Default Style size of elements

    Hello,

    I'm trying to implement custom style for some widgets. I made my own style class, derived from QPlastiqueStyle, that customize widgets. For some widgets I would like to change their size (for instance for ToolBox tab). There is a virtual function sizeFromContents() that should return new element size. However, incoming structure ContentsType (describes widget type) doesn't contain my widget type. Honestly structure quite limited for a number of widgets.

    Does it mean that I cannot change size of ToolBox tabs? In general, does it mean that I can resize only elements from ContentsType structure? If yes is there ant other way to resize toolbox tab?
    Last edited by 1111; 24th February 2009 at 10:44.

Similar Threads

  1. Text size
    By bnilsson in forum Qt Programming
    Replies: 2
    Last Post: 2nd October 2008, 21:56
  2. How to find best size for QTableWidget?
    By plamkata in forum Qt Programming
    Replies: 3
    Last Post: 24th July 2008, 19:07
  3. QT-wince and QHttp::readAll() trouble....
    By AcerExtensa in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 12th June 2008, 09:40
  4. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 17:57
  5. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

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.