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. QT5.9 Dialog stays on all workspace
Forum Updated to NodeBB v4.3 + New Features

QT5.9 Dialog stays on all workspace

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 107 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.
  • F Offline
    F Offline
    Felix Yen
    wrote last edited by Felix Yen
    #1

    Hi,
    My development environment is Red hat 8.
    My code is : QDialog *dialog = new QDialog(this) without special settings,
    As a result, when the Dialog UI is opened and then the Linux workspace is switched, the dialog also moves to the new workspace, after closing the Dialog, my app may exhibit unexpected behavior. I have tried many solutions but none have worked.
    I accidently discovered that Dialogs are displayed in the menu bar don't switched with workspace. so, I change the code "QDialog *dialog = new QDialog(nullptr)", some Dialogs are ok, but some problems still exist. When i add the code "setWindowsFlags(Qt::Windows)", the problem was solved.
    I want to know the reason, thanks.

    Additional information: The Dialogs are constructed by *.ui method will not switched when workspace changed.

    jsulmJ 1 Reply Last reply
    0
    • F Felix Yen

      Hi,
      My development environment is Red hat 8.
      My code is : QDialog *dialog = new QDialog(this) without special settings,
      As a result, when the Dialog UI is opened and then the Linux workspace is switched, the dialog also moves to the new workspace, after closing the Dialog, my app may exhibit unexpected behavior. I have tried many solutions but none have worked.
      I accidently discovered that Dialogs are displayed in the menu bar don't switched with workspace. so, I change the code "QDialog *dialog = new QDialog(nullptr)", some Dialogs are ok, but some problems still exist. When i add the code "setWindowsFlags(Qt::Windows)", the problem was solved.
      I want to know the reason, thanks.

      Additional information: The Dialogs are constructed by *.ui method will not switched when workspace changed.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote last edited by
      #2

      @Felix-Yen What is the Qt version and what desktop environment (especially window manager) do you use?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      F 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Felix-Yen What is the Qt version and what desktop environment (especially window manager) do you use?

        F Offline
        F Offline
        Felix Yen
        wrote last edited by
        #3

        @jsulm QT version:5.9.3 ; Desktop env: Mate; Windows manger: Marco

        jsulmJ 1 Reply Last reply
        0
        • F Felix Yen

          @jsulm QT version:5.9.3 ; Desktop env: Mate; Windows manger: Marco

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote last edited by
          #4

          @Felix-Yen I don't have experience with this setup. You could try a newer Qt version and also check whether it works on other Linux distributions/desktop environments.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          F 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Felix-Yen I don't have experience with this setup. You could try a newer Qt version and also check whether it works on other Linux distributions/desktop environments.

            F Offline
            F Offline
            Felix Yen
            wrote last edited by
            #5

            @jsulm The problem was solved, I mainly want to know the reason. Thank you~~

            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