Results 1 to 3 of 3

Thread: Document title bar problem

  1. #1
    Join Date
    Oct 2011
    Posts
    2
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Question Document title bar problem

    I have changed the MDI example (Qt 4.7.4) to explain a title bar problem.

    The image below demonstrates the problem. The three document buttons (maximize, minimize and close) do not appear.

    doctitlebar.png

    In the attached source (mdi.zip), there is a file, named "Defines.h", where is possible to simulate the error.

    What's happening, does anyone know?

    Thank you,
    Álvaro.

  2. #2
    Join Date
    Oct 2011
    Posts
    2
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Document title bar problem

    There is a new version mdi.zip.

    The first version contains errors in the files ".pro" and "main.pp".

  3. #3
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Document title bar problem

    This looks strange. The problem is created by QMenuBar. As QMainWindow's default QMenuBar is hidden and when you create a new maximized the MDI child with menubar hidden, it is causing this button's missing, (in my case the Qt Icon on the left of menus is also missing, on Windows Vista).

    If you set default menu bar visible before creating the MDI child it works ok. Just by calling menuBar()->show() in ctor, or mainWin.menuBar()->show() before mainWin.newFile() in main.cpp

    I guess QMainWindow's layout manager is not handing menu bar hidden scenario properly, which is causing the widgets to be overlapping (or something of that sort which is causing geometry problems).

Similar Threads

  1. QwtScaleWidget title wrap problem
    By Arcadi in forum Qwt
    Replies: 1
    Last Post: 16th September 2011, 08:42
  2. resize problem, example and document not correct?
    By zhxys in forum Qt Programming
    Replies: 1
    Last Post: 21st January 2011, 09:31
  3. QDockWidget move problem when using custom title widget
    By alexi_nedo in forum Qt Programming
    Replies: 2
    Last Post: 13th September 2010, 13:25
  4. Replies: 1
    Last Post: 11th December 2009, 17:21

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.