Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] How to hide border of dialog that in QMdiArea

[SOLVED] How to hide border of dialog that in QMdiArea

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rom8726
    wrote on last edited by
    #1

    Hey! I want to open any dialog at QMdiArea, and I want to hide it's border and maximise, minimize, close buttons.
    setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint) don't help me.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rom8726
      wrote on last edited by
      #2

      I solved this problem:
      @QDialog *ctl = new QDialog(this);
      ctl->setFixedSize(200,200);
      QMdiSubWindow *sub = ui->mdiArea->addSubWindow(ctl);
      sub->setWindowFlags(Qt::FramelessWindowHint);
      ctl->show();@

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved