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 show the fileDialog window on top of all windows
QtWS25 Last Chance

How to show the fileDialog window on top of all windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
qfiledialog
2 Posts 2 Posters 514 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.
  • C Offline
    C Offline
    ChiaoHuang
    wrote on 13 Jan 2021, 13:06 last edited by
    #1

    Hi everyone,
    I use QT 5.6.3 now.
    I'd like to create a QT application on my board.
    It should be full screen and no weston toolbar.
    Therefore, I add this to MainWindow::MainWindow function.

        ui->setupUi(this);
        setWindowFlags(Qt::Window);
        showFullScreen();
    

    alt text

    I'd like to use QFileDialog to select files.
    When it shows the fileDialog window, the weston toolbar will display also.
    like this:
    alt text

    When I touch the MainWindow part, the fileDialog window will disappear.

    I have two questions.

    1. How to show the fileDialog window and no weston toolbar?
    2. How to show the fileDialog window on top of all windows?

    Thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 13 Jan 2021, 13:14 last edited by
      #2
      1. I don't know.
      2. You need to set the dialog to be "ApplicationModal" or set "modal" property: https://doc.qt.io/qt-5/qdialog.html#modal-prop

      (Z(:^

      1 Reply Last reply
      2

      1/2

      13 Jan 2021, 13:06

      • Login

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