Results 1 to 12 of 12

Thread: Can't get title bar to disappear from widget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Can't get title bar to disappear from widget

    What's the point of passing all those flags and setting geometry of the window manually if you are then calling showFullScreen()?

    Calling showFullScreen() and update() from a constructor is not a wise thing to do too. Your constructor should only contain the setupUi() call and then somewhere else in your code you should call showFullScreen().
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Aug 2009
    Posts
    140
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    22

    Default Re: Can't get title bar to disappear from widget

    Wow, this is frustrating, I responded to these comments several days ago but they didn't post, apparently. d_stranz--I actually did initialize QMainWindow in the MainWindow constructor, I just forgot to put that in the snippet. (My firewall at work blocks QtCentre ?!?! so I have to reply from home.) Passing window flags from the constructor didn't help. wysota--I had everything together in that snippet just to show that I had tried all those different things, I tried out showFullScreen(), manual settings independently as well.

    I'll try to keep update() and showFullScreen() out of the constructor, and see if that helps. Thank you both, so far--

    Matt

Similar Threads

  1. QWidget - Q_OBJECT makes the widget disappear
    By Sir Rogers in forum Qt Programming
    Replies: 6
    Last Post: 26th January 2010, 00:39
  2. widget without title bar???
    By db in forum Newbie
    Replies: 3
    Last Post: 30th August 2007, 22:16
  3. QLabel::setText causes part of widget to disappear
    By Pieter from Belgium in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2007, 10:22
  4. Mouse dragged widget without title
    By Tonal in forum Qt Programming
    Replies: 2
    Last Post: 14th November 2006, 13:28
  5. Replies: 9
    Last Post: 8th May 2006, 15: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
  •  
Qt is a trademark of The Qt Company.