Results 1 to 5 of 5

Thread: Label over menubar

  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Label over menubar

    Hi,

    I changed the position of the menubar in order to put a label at position (0,0). Once I build the project, menubar does not appear.

    Does anyone has an idea about it?

  2. #2
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: Label over menubar

    Still got no idea?Any tips even it is vert little could be useful.

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Label over menubar

    So what did you actually do? It's impossible to say anything without seeing any code or at least a more detailed description.
    J-P Nurmi

  4. #4
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: Label over menubar

    I thought I was clear. I couldn't provide a code or any .ui files since it's forbidden to us.
    Anyway here is my problem again,

    I just want to locate my label at (0,0) position of the central widget. I exactly did the following;

    I have three main widgets which they have the central widget(my main window) as their parent. They are menubar, a label and a frame. The parent of the menubar and the frame were set in the designer and the parent of the label were set in the source code because in the designer, you can't put a widget over the menubar!

    I changed the position of the menubar and the frame from the designer and save the related .ui file. Then I went back to my source code and set the parent of the label as I just mentioned and move it to location (0,0) of the central widget.

    I hope it is clear now...

    Regards

  5. #5
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: Label over menubar

    More briefly again,

    I changed the position of the menubar from the designer in order to put a label at position (0,0) but once I build the project, menubar does not appear!

    My menubar, centralwidget and my label have the same parent.

    Regards.

Similar Threads

  1. tool buttons on top of label
    By McKee in forum Qt Programming
    Replies: 5
    Last Post: 2nd November 2008, 16:07
  2. Showing and hiding menubar
    By borges in forum Newbie
    Replies: 1
    Last Post: 23rd September 2007, 10:56
  3. QActions don't work with menubar hidden
    By Pepe in forum Qt Programming
    Replies: 1
    Last Post: 16th August 2007, 01:04
  4. Replies: 2
    Last Post: 12th November 2006, 08:47
  5. Replies: 1
    Last Post: 24th October 2006, 16:40

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.