Results 1 to 19 of 19

Thread: How to let the close icon of QWidget on the right-up corner appear?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to let the close icon of QWidget on the right-up corner appear?

    I have set a central widget(created by QWidget) for the main window,and set its fixed size 1X1(because I do want it to be seen).

    Now,I can arrange the three dock widget like the second picture in the #11 post.

    But the following problem occur.

    When I drag the dock widgets with mouse,I find that there is blank space between them,(I think, it may be the central widget,but I have set the size of it 1X1),could you tell me why?

    blankspace.PNG

  2. #2
    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: How to let the close icon of QWidget on the right-up corner appear?

    Because the dock on the left is attached to the left dock area and the docks on the right are attached to the right dock area. Try forcing all of them to be attached to the left area (by forbidding them from the right area).
    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.


Similar Threads

  1. Replies: 0
    Last Post: 17th November 2011, 11:51
  2. Can't close a QWidget from itself
    By tonnot in forum Newbie
    Replies: 3
    Last Post: 25th August 2011, 10:19
  3. Replies: 1
    Last Post: 18th May 2011, 14:36
  4. How to Disabel close button on top corner of widget
    By jsmith in forum Qt Programming
    Replies: 4
    Last Post: 2nd August 2010, 16:57
  5. Replies: 1
    Last Post: 7th July 2007, 09:03

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.