[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    Re: [Kde-bindings] Qt, Qyoto buttons work intermediately
From:       Arno Rehn <arno () arnorehn ! de>
Date:       2010-02-15 1:30:39
Message-ID: 201002150230.40002.arno () arnorehn ! de
[Download RAW message or body]

On Monday 15 February 2010 00:57:50 Linuxoid Oz wrote:
> Arno,
> 
> Please get the whole project and code from here:
> http://qt-giraff.svn.sourceforge.net/viewvc/qt-giraff/trunk/source/
> 
> If I could only get through this wall, I should be OK with the rest. Do you
> know why the menu bar only shows from a Qt converted UI file but not when
> I create it myself in the code? I'd really appreciate your help. Thank
> you.
The menubar is actually added. You just don't set any titles for the menus, so 
the bar is just around 1px high. Add a line like
menuFile.Title = "File...";
and there you are.
If you design the UI in-code, it is probably more convenient to use the 
AddMenu() methods of QMenuBar. It already has overloads that accept a string 
for the menu title.

-- 
Arno Rehn
arno@arnorehn.de
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic