Results 1 to 5 of 5

Thread: Flickering custom titlebar

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Flickering custom titlebar

    Apparently the problem of flickering is because the widget created in the TitleBarWidget constructor doesn't use "this" as parent, using "this" the flickering is out but my layout is now not good visually, I have to find how recode it to be like before. I tried a QLinedEdit as titlebar and I saw the flickering was out, like that I found the answer.
    EDIT:
    SOLVED, but I need something tell me if that's correct. I have all widget using "this" as parent but the layout has no parent, then I use at the end "setLayout( Layout );".
    setLayout set the layout to the new parent or a memory leak is present ?
    EDIT:
    Apparently the doc do like I do :
    http://doc.qt.io/qt-5/qwidget.html#setLayout
    All looks ok
    Last edited by Alundra; 24th January 2015 at 01:58.

Similar Threads

  1. how to draw custom titlebar for QMainWindow ... ?
    By pradeepreddyg95 in forum Qt Programming
    Replies: 5
    Last Post: 13th May 2017, 09:23
  2. Replies: 0
    Last Post: 18th November 2014, 04:39
  3. QFrame with QDockWidget using custom titlebar
    By Alundra in forum Qt Programming
    Replies: 0
    Last Post: 7th March 2014, 16:30
  4. Replies: 6
    Last Post: 16th April 2013, 16:13
  5. custom widget with the windows7 style titlebar??
    By pirlogy in forum Qt Programming
    Replies: 1
    Last Post: 21st May 2011, 00:30

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.