Results 1 to 2 of 2

Thread: Header Width of QDockWidget in Qt4.3.3?

  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Header Width of QDockWidget in Qt4.3.3?

    Hi All,

    I am working on Qt 4.3.3 on my Mac.

    Earlier I was working in Qt 4.2.2 an have a QDockWidget and now I have compiled my code with Qt 4.3.3 but I got a problem.

    The Header width of QDockWidget in Qt 4.3.3 is far more than in Qt 4.2.2.
    So if any body knows how Can I set its width according to my need (that of Qt 4.2.2) than plz help me.

    Thanks..
    Attached Images Attached Images

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Header Width of QDockWidget in Qt4.3.3?

    It seems to me that in 4.3.3 the two buttons have a larger size than in 4.2.2, hence the bigger height.

    Maybe you can create a custom title bar widget, with a smaller height, and set it with QDockWidget::setTitleBarWidget().

  3. The following user says thank you to marcel for this useful post:

    vishal.chauhan (8th February 2008)

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.