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. [QT-BUG FOUND] KDE QFileDialog under Gnome
Forum Updated to NodeBB v4.3 + New Features

[QT-BUG FOUND] KDE QFileDialog under Gnome

Scheduled Pinned Locked Moved General and Desktop
9 Posts 3 Posters 2.7k 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.
  • G Offline
    G Offline
    goocreations
    wrote on last edited by
    #1

    Whenever I open a QFileDialog, a KDE file dialog pops up even though I'm running Gnome.
    Is there anyway I can force Qt to use the Gnome dialog when running Gnome and only show the KDE one if I'm actually running KDE?

    I changed QFileDialog::DontUseNativeDialog, but it stays at KDE.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      You shouldn't use QFileDialog::DontUseNativeDialog :)). The best practice will be:
      @
      QString filename = QFileDialog::getOpenFileName(this, tr("Open file"), QDir::homePath(), "All files (*)");
      @

      It will be really native to all platforms.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goocreations
        wrote on last edited by
        #3

        Even with your code (and not using QFileDialog::DontUseNativeDialog) I still get the KDE dialog.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tucnak
          wrote on last edited by
          #4

          Hmmm. It should be interesting. Can you tell me a story of your Qt, please? And are you using any styles?

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goocreations
            wrote on last edited by
            #5

            No, I'm not using any styles.
            I'm currently linking against Qt 5.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tucnak
              wrote on last edited by
              #6

              It can be just Qt 5 bug. Does it work on Qt 4.8?

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goocreations
                wrote on last edited by
                #7

                Ohh yes. It works on Qt4, so it's probably just a bug in 5.

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tucnak
                  wrote on last edited by
                  #8

                  You should report about it to Qt Bug Tracker.

                  -And prepend to your thread's title "[QT-BUG FOUND] ".-

                  edit: as explained by Tobias Hunger, the forums are not suitable for bug reporting. Please don't invent your own tags, it is not helpful; Andre

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    tobias.hunger
                    wrote on last edited by
                    #9

                    tucnak: Just ask them to file a bug report and tag this post with the idea and please don't send people of on fools errands like "prepend to your thread's title - [QT-BUG-FOUND]". That is no help to anybody.

                    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