Results 1 to 7 of 7

Thread: QMainWindows show empty QWidget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2016
    Posts
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMainWindows show empty QWidget

    How do I remove max and min buttons in frmmantenimientosexo?


    Qt Code:
    1. FrmMantenimientoSexo::FrmMantenimientoSexo(const QString strUserName, const QString strTableName, QWidget *parent) : QWidget(parent)
    2. {
    3. .
    4. .
    5. .
    6.  
    7. this->setWindowFlags(Qt::WindowMinimizeButtonHint | Qt::WindowMinimizeButtonHint);
    To copy to clipboard, switch view to plain text mode 

    that's not work.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QMainWindows show empty QWidget

    FrmMantenimientoSexo is the content of the sub window, not the sub window itself.

    Try setting flags on the sub window that you get back from the QMdiArea.

    Cheers,
    _

Similar Threads

  1. How to show MS Word int QWidget ?
    By luoyes in forum Qt Programming
    Replies: 8
    Last Post: 3rd December 2013, 04:22
  2. QWidget.show () is slow
    By rdf in forum Qt Programming
    Replies: 6
    Last Post: 7th December 2012, 15:04
  3. QTreeView - force to show expand arrows on empty folders
    By cierpliwy in forum Qt Programming
    Replies: 3
    Last Post: 19th August 2012, 01:09
  4. Replies: 5
    Last Post: 29th June 2010, 11:58
  5. QWidget::exec() and QWidget::show()
    By MarkoSan in forum Qt Programming
    Replies: 6
    Last Post: 18th October 2007, 21:39

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.