Results 1 to 3 of 3

Thread: [qt4] QScrollArea corner widget?

  1. #1
    Join Date
    Jan 2006
    Posts
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question [qt4] QScrollArea corner widget?

    Is there any way to set a corner widget* in a qt4 QScrollArea?

    With Qt3 it was a simple QScrollView::setCornerWidget(QWidget*), but looks like this functionality is lost in Qt4.

    *at the bottom right corner, in that space both QScrollBar's left empty.

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: [qt4] QScrollArea corner widget?

    Porting docs doesn't say anything about it. However, I also cannot find anything about it in the docs. If you want to do it on your own, you should use a subclass of either QAbstractScrollView or QScrollView, whatever is appropriate for your case. I think both use a QGridLayout. It should be easy to add a widget there if nothing important is hidden in private members. However, I'm now at work and don't have Qt here.
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Jan 2006
    Posts
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: [qt4] QScrollArea corner widget?

    As soon as I get 5 free minutes (maybe I'll need more) I'll try to implement a QScrollArea with that setCorner method... and post it here.

    thanks!
    ciao!

Similar Threads

  1. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 07:06
  2. QTabWidget: corner widget is not shown
    By dv_ in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2008, 17:30
  3. Replies: 2
    Last Post: 8th October 2006, 20:14
  4. [Qt4] - Moving Widget...
    By IPFreely in forum Qt Programming
    Replies: 1
    Last Post: 13th June 2006, 09:32
  5. Corner widget in QTabWidget doesn't show up
    By ePharaoh in forum Qt Programming
    Replies: 2
    Last Post: 6th April 2006, 17:02

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.