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. How to set window flags for QFileDialog
Forum Updated to NodeBB v4.3 + New Features

How to set window flags for QFileDialog

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 556 Views
  • 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.
  • Q Offline
    Q Offline
    Qingshui Kong
    wrote on last edited by
    #1

    Hello.

    Could somebody help me.

    I want to set window flags of QFileDialog. But it doesn't work.

    For example, setWindowFlags(Qt::FramelessWindowHint); The file dialog still has window frame. But it works for QMessageBox.

    It is the same both on Windows and Ubuntu.

    My environment.

    Windows 7
    0_1539149740402_706d0b40-08a9-4a70-9231-03a0fac5d5cc-image.png
    0_1539149764218_4786f301-95ec-4513-8117-84fc4fc3d3fe-image.png

    Ubuntu 16.04
    0_1539149778472_471fc805-be41-4c7f-986f-9d4cde57db63-image.png
    0_1539149793415_c0ce1ab7-1f45-4438-9a0e-18840f29fc00-image.png

    Thanks

    Q 1 Reply Last reply
    0
    • Q Qingshui Kong

      Hello.

      Could somebody help me.

      I want to set window flags of QFileDialog. But it doesn't work.

      For example, setWindowFlags(Qt::FramelessWindowHint); The file dialog still has window frame. But it works for QMessageBox.

      It is the same both on Windows and Ubuntu.

      My environment.

      Windows 7
      0_1539149740402_706d0b40-08a9-4a70-9231-03a0fac5d5cc-image.png
      0_1539149764218_4786f301-95ec-4513-8117-84fc4fc3d3fe-image.png

      Ubuntu 16.04
      0_1539149778472_471fc805-be41-4c7f-986f-9d4cde57db63-image.png
      0_1539149793415_c0ce1ab7-1f45-4438-9a0e-18840f29fc00-image.png

      Thanks

      Q Offline
      Q Offline
      Qingshui Kong
      wrote on last edited by
      #2

      setOption, DontUseNativeDialog

      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