Results 1 to 8 of 8

Thread: Undocking Problem a Bug?

  1. #1
    Join Date
    Apr 2010
    Posts
    152
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Undocking Problem a Bug?

    Hello,

    Qt 5.0 QDockWidget title bar disappears when it's undocked. Is there a property I need to set to keep the decoration/title-bar?

    I thought it might be a bug, so I tried to build the Qt 5.2 from source under Windows 7 VS2008, but the compiler fails with an error: cannot open include file "unordered_map"
    Do I need to point the build process to boost library? How?

    Thanks!

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Undocking Problem a Bug?

    My dock widgets keep a title bar when undocked. See if the problem exists in the Dock Widgets example. Please provide a small example that demonstrates the problem.

    The class unordered_map is part of C++11. You need to have a compiler toolchain with adequate C++11 support to compile Qt5 with the -c++11 option. VS2008 is not good enough.

  3. #3
    Join Date
    Apr 2010
    Posts
    152
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Undocking Problem a Bug?

    I'm creating QDockWidget using the designer. So is not there anyway I can build Qt 5.2 using VS2008?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Undocking Problem a Bug?

    Yes, I expect you can build Qt5 with VS2008 but you must configure it without the C++11 support.

    That has nothing to do with the problem you claim. Can you provide the information I asked for?

  5. #5
    Join Date
    Apr 2010
    Posts
    152
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Undocking Problem a Bug?

    The dock widget examples work, mine worked but this is the problem I found:

    My application has a window next to the docked used for drawing. It's created as OpenGL custom window. When it's created with OpenGL the titlebar of the dock widget disappears when undocked. Tried to create the window as DirectX11 enabled, and the same problem occurs. Note that my rendering window is a custom window which sets its own rendering context, maybe that's the problem, though not sure how it's related???

    Thanks.

  6. #6
    Join Date
    Apr 2010
    Posts
    152
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Undocking Problem a Bug?

    I want to build and use Qt 5.2.1 because I think what's happening with Qt 5.0.1 is apparently a BUGGGGGGGGGGGGGG

    Unfortunately building with option -no-c++11 still fails with the same error...

  7. #7
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Undocking Problem a Bug?

    You have yet to demonstrate the "bug" in any way that is useful to us.

    As for the build. The only place unordered_map occurs in the Qt5 source is within the ANGLE code. That code is all #ifdef wrapped to do something different for MSVC, include and use hash_map, instead of using unordered_map. Not sure how you are getting offending code. There is a comment in the qtbase/src/angle/src/config.pri file that C++11 is required to build under MingW and then it forces that option: perhaps that has a bearing, perhaps not. All that is unchanged in 5.2.1 anyway.

    You could try compiling a desktop OpenGL version:
    Qt Code:
    1. configure -opengl desktop
    To copy to clipboard, switch view to plain text mode 

  8. #8
    Join Date
    Apr 2010
    Posts
    152
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Undocking Problem a Bug?

    Changed my mind about compiling with MinGW after tried Qt Creator...I would stick with VS.

    So my main problem was the disappearing titlebar from undocked widget, and after trying Qt 5.2.1 for VS 2012, the problem solved! Fantastic!

Similar Threads

  1. Replies: 5
    Last Post: 30th November 2010, 06:40
  2. QDockWidget freezes desktop when undocking
    By pdolbey in forum Qt Programming
    Replies: 5
    Last Post: 12th March 2007, 14:47

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.