Results 1 to 4 of 4

Thread: QDockWidget - features

  1. #1
    Join Date
    Aug 2006
    Posts
    83

    Default QDockWidget - features

    Hello.

    I need some help with my QDockWidget. The problem is that I want to remove the two standard icons (that manage dockable,closeable features) but without losing these two features. I hope u can give me some help where I can do that.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QDockWidget - features

    Use a custom style which doesn't render those buttons.

  3. #3
    Join Date
    Aug 2006
    Posts
    83

    Default Re: QDockWidget - features

    And how would I look for one?? In polish function? would I use casting???

  4. #4
    Join Date
    Aug 2006
    Posts
    83

    Default Re: QDockWidget - features

    If anyone else want's to know how i handled this:
    I used this function:

    QPixmap XISLStyle::standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt,
    const QWidget *widget) const
    {
    switch(standardPixmap)
    {
    case SP_DockWidgetCloseButton:
    {}
    break;
    default:
    return QCommonStyle::standardPixmap(standardPixmap, opt, widget);
    }
    }

Similar Threads

  1. QDockWidget Size
    By kiker99 in forum Qt Programming
    Replies: 9
    Last Post: 31st March 2007, 16:15
  2. QDockWidget flicker
    By fellobo in forum Qt Programming
    Replies: 1
    Last Post: 28th April 2006, 20:42
  3. QTableWidget -> QDockWidget,
    By ogre in forum Qt Programming
    Replies: 3
    Last Post: 26th January 2006, 06:51
  4. QDockWidget: Debugging crash
    By carsten in forum Qt Programming
    Replies: 10
    Last Post: 7th January 2006, 10:50
  5. How to get a QDockWidget to auto resize?
    By bitChanger in forum Qt Programming
    Replies: 4
    Last Post: 6th January 2006, 16:10

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.