Results 1 to 4 of 4

Thread: Photoshop designed element to Qt

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jan 2013
    Posts
    25
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Photoshop designed element to Qt

    I don't think you can do that with just styling. But you can subclass QTreeView and provide your own painting and a custom delegate for items.
    I'm not sure what the limitations are with styling a Treeview.
    Basically, what i need to know is how (with a stylesheet, i'm not a dev) i can style the first item, and how i can style the subitems. If i know the selectors (something that in my experience with Qt so far is sometimes really hard to find out, even with the documents), I can experiment a bit.


    -edit-

    So far i know you have to use

    QTreeWidget:item{ .. } to change the style of ALL the items in the Treeview, but the first level item and the 2nd level item needs to be different. Also, i need to draw the whole item, including the icon area....
    Last edited by Nyte; 6th February 2013 at 12:38.

Similar Threads

  1. Replies: 9
    Last Post: 23rd April 2012, 14:53
  2. Replies: 0
    Last Post: 21st February 2012, 03:45
  3. Photoshop filter plug-in
    By ExxEnos in forum Qt Programming
    Replies: 19
    Last Post: 13th April 2010, 16:17
  4. Tool bar as photoshop, where only one is selected.
    By ricardo in forum Qt Programming
    Replies: 6
    Last Post: 23rd June 2009, 16:09
  5. Photoshop-like palettes.
    By Valeriy in forum Qt Programming
    Replies: 4
    Last Post: 1st September 2008, 22:37

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.