The Ultimate Qt Community site
Home News Forum Wiki Contest FAQ Links

Go Back   Qt Centre Forum > Qt > Qt Programming

Qt Programming General Qt programming issues.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10th March 2007, 11:28
No-Nonsense No-Nonsense is offline
Novice
 
Join Date: Nov 2006
Qt products used: Qt4
Qt platforms used: Unix/X11, Windows
Posts: 35
Thanks: 25
Thanked 0 Times in 0 Posts
Question MainWindow Menu bug in Qt 4.2.3?
Related to: Qt4

I switched to Qt 4.2.3 from Qt 4.2.2 yesterday and my Qt Designer build QMainWindow application now has a severe bug with the menu. I attached two screenshots showing the problem with both languages my app supports:
There is a small line above the menu. Below this line the menu items are not clickable. As a workaround to access File / Edit you have to click a menu item that is on the right from that line and then move the mouse left so that the menu switches to the leftnext menu.

Previewing the MainWindow in Qt Designer does not show this line and behaviour. Another app and QDevelop that I both build with Qt 4.2.3 do not show this either.

Any ideas what could cause this issue?

Thanks in advance,
-Jens
Attached Images
File Type: png menu_ger.png (597 Bytes, 35 views)
File Type: png menu_eng.png (445 Bytes, 32 views)

Reply With Quote
  #2  
Old 10th March 2007, 21:50
BartSimpson BartSimpson is offline
Beginner
 
Join Date: Mar 2007
Qt products used: Qt4
Qt platforms used: Unix/X11, Windows
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: MainWindow Menu bug in Qt 4.2.3?

I have the same Problem, but I looks different at me.
When I start the designer than no menu bar is shown. And all fonts are miss sized. Some are extreme big and other are extreme small. This only happened, when you build Qt4 on Windows with the Platform SDK 6(alias vista SDK) when using the old version 5 all is ok.
Attached Images
File Type: jpg designer.JPG (84.5 KB, 28 views)

Last edited by BartSimpson; 10th March 2007 at 23:09.
Reply With Quote
  #3  
Old 10th March 2007, 23:16
wysota wysota is offline
Guru
 
Join Date: Jan 2006
Location: Warsaw, Poland
Qt products used: Qt3, Qt4
Qt platforms used: Unix/X11, Windows
Posts: 11,590
Thanks: 3
Thanked 1,629 Times in 1,581 Posts
Default Re: MainWindow Menu bug in Qt 4.2.3?

My Linux 4.2.3 build doesn't experience any of the behaviours you describe, although my application has a single drop down menu. I doubt that is the problem though... Can you prepare a minimal compilable example reproducing the problem?

Reply With Quote
  #4  
Old 11th March 2007, 09:44
ChristianEhrlicher ChristianEhrlicher is offline
Advanced user
 
Join Date: Jan 2006
Location: Bremen, Germany
Qt products used: Qt3, Qt4
Qt platforms used: Unix/X11, Windows
Posts: 374
Thanks: 0
Thanked 46 Times in 43 Posts
Default Re: MainWindow Menu bug in Qt 4.2.3?

Imho no need for a testcase - it really only happens with the vista sdk...
See also http://www.trolltech.com/developer/t...ntry&id=150711

Reply With Quote
  #5  
Old 11th March 2007, 12:47
No-Nonsense No-Nonsense is offline
Novice
 
Join Date: Nov 2006
Qt products used: Qt4
Qt platforms used: Unix/X11, Windows
Posts: 35
Thanks: 25
Thanked 0 Times in 0 Posts
Smile Re: MainWindow Menu bug in Qt 4.2.3?

Quote:
Originally Posted by No-Nonsense View Post
There is a small line above the menu. Below this line the menu items are not clickable. As a workaround to access File / Edit you have to click a menu item that is on the right from that line and then move the mouse left so that the menu switches to the leftnext menu.
I could solve my problem by removing step by step parts of my MainWindow's constructor. The small bar and the resulting problems were created by my ::readSettings() method that restores the forms settings.

It must been either created by restoreGeometry(...) or restoreState(...) that restored the MainForm's state saved with the old Qt 4.2.2.
After deleting the MainForm's settings from the registry the problem solved.

To prevent this bug in further versions of my app I am thinking of storing the Qt build-time and run-time versions in my apps settings and to delete all Form related stuff when the versions changed (QT_VERSION_STR // Qt version (build) and qVersion() // Qt version (runtime)).

-Jens

Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"About app" not getting translated on Mac app menu sharevari Qt Programming 0 24th January 2007 17:24
Why doesn't my dialog window close when the mainwindow is closed? pir Qt Programming 3 23rd July 2006 19:02
Context Menu on QTableWidget ankurjain Qt Programming 8 12th April 2006 13:37
Qt/MacOSX preferences menu item mcenatie Qt Programming 4 14th March 2006 05:24
Tracking separators in a menu (insertSeparator) PrimeCP Qt Programming 4 25th January 2006 19:10


All times are GMT +1. The time now is 19:30.

Powered by vBulletin Version 3.7.1 Copyright ©2000 - 2008, Jelsoft Enterprises Ltd., vRewrite 1.5 SEOed URLs completed by Tech Help Forum and Chalo Na.
© 2006–2008 Qt Centre - The Ultimate Qt Community site
Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.