Results 1 to 6 of 6

Thread: Resize a QDockWidget ? (Width)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Posts
    19
    Thanks
    4

    Default Re: Resize a QDockWidget ? (Width)

    It's true, i don't define a layout for the widget... It's done now.

    I have another problem, the first window has autofilbackground value to true, and a black background. So, the context menu of the QDockWidget is black, and I can't see the text... When I right click on the title bar of the QDockWidget, i have a context menu for set visible or not, the QDockWidget, (in clicking checkbox). This context menu have a background color black and a text color black too. So I can see it.
    How can i modify this parameter ?

    Thanks in advance for your help

  2. #2
    Join Date
    Jan 2012
    Location
    Dortmund, Germany
    Posts
    159
    Qt products
    Qt4
    Platforms
    Windows Android
    Thanks
    69
    Thanked 10 Times in 8 Posts

    Default Re: Resize a QDockWidget ? (Width)

    I'm not sure if I understand you correctly. But it seems to me that you could use the Style Selectors to change the appearance of only those widgets you want to change - and not their children:
    http://doc.qt.io/qt-4.8/http://qt-project.org/doc/qt-4.8/stylesheet-syntax.html

Similar Threads

  1. looking for QDockWidget type, but not take whole width/height
    By Thomas_Lerman in forum Qt Programming
    Replies: 0
    Last Post: 27th October 2011, 21:09
  2. the default width of QDockWidget
    By weixj2003ld in forum Qt Programming
    Replies: 2
    Last Post: 11th September 2011, 10:31
  3. simple question,set width of QTreewidget or QDockWidget
    By weixj2003ld in forum Qt Programming
    Replies: 0
    Last Post: 17th May 2010, 02:52
  4. Header Width of QDockWidget in Qt4.3.3?
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 8th February 2008, 10:11
  5. Replies: 2
    Last Post: 22nd January 2008, 17: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
  •  
Qt is a trademark of The Qt Company.