Results 1 to 9 of 9

Thread: Best way to create Windows Explorer type UI

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Location
    Cincinnati, Ohio, USA
    Posts
    92
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3

    Default Re: Best way to create Windows Explorer type UI

    I am not seeing any options within the Qt Designer to make a vertical bar appear so that it is clear that it can be resized. How does one go about doing that?

    Sam

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Best way to create Windows Explorer type UI

    This depends on your style. Each style paints the handler in a different way. If you want to customize, then you have to subclass your style and use QStyle::CE_Splitter in QStyle::drawControl().

  3. #3
    Join Date
    Jun 2010
    Location
    Cincinnati, Ohio, USA
    Posts
    92
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3

    Default Re: Best way to create Windows Explorer type UI

    Lykurg,

    Well, I don't rightfully know which style I am using. I am simply using the default and I am on Windows 7. Is there another style I could use that does indicate some how there is a splitter present? If so, how do I go about using it?

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Best way to create Windows Explorer type UI

    You can set a style via QApplication::setStyle(). Right now I also remember that you can do it easier with style sheets. See "Customizing QSplitter" in the docs. It is
    css Code:
    1. QSplitter::handle {}
    To copy to clipboard, switch view to plain text mode 
    you can use.

  5. #5
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    52
    Thanked 42 Times in 42 Posts

    Default Re: Best way to create Windows Explorer type UI

    Or You can also Use QStyle, without subclassing, and use something like this:
    Qt Code:
    1. QSplitter::handle:horizontal {
    2. width: 1px;
    3. }
    4.  
    5. QSplitter::handle:vertical {
    6. height: 10px;
    7. }
    8.  
    9. QSplitter::handle {
    10. image: url(:/resources/myQSpliterVImg.png);
    11. }
    To copy to clipboard, switch view to plain text mode 

    Edit. posted to late ...

Similar Threads

  1. Create windows explorer with QListView QTreeView
    By dima in forum Qt Programming
    Replies: 3
    Last Post: 13th January 2012, 10:12
  2. how to create internet explorer toolbar using Qt?
    By live_07 in forum Qt Programming
    Replies: 2
    Last Post: 16th February 2011, 07:28
  3. Replies: 1
    Last Post: 15th August 2009, 11:23
  4. Replies: 7
    Last Post: 17th April 2006, 13:57
  5. windows explorer
    By denis in forum Newbie
    Replies: 1
    Last Post: 25th January 2006, 05:59

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.