Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML FileDialog not native
Forum Updated to NodeBB v4.3 + New Features

QML FileDialog not native

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 369 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.
  • T Offline
    T Offline
    tubbadu
    wrote on last edited by tubbadu
    #1

    Hello there! I've just installed Qt Creator and I'm experimenting on creating standalone desktop apps (until now I have only developed QML plasmoid for the Plasma Desktop), but something really strange happens: The FileDialog is really ugly and not native:
    alt text
    While in the Plasmoid it looked perfectly native and followed the default color scheme

    I tried looking on the web and found some other user that posted this question, but literally no one got a solution

    This is the code:

    import QtQuick 2.15
    import QtQuick.Window 2.15
    import QtQuick.Dialogs 1.3
    
    Window {
        width: 640
        height: 480
        visible: true
        title: qsTr("Hello World")
    
        FileDialog {
            id: fileDialog
            title: "Please choose a file"
            folder: shortcuts.home
            Component.onCompleted: visible = true
        }
    }
    

    I didn't touch the c++ file so it's as it is created by the IDE

    Is this just a problem of mine? or is it a common problem/bug? is this fixable? perhaps I'm missing some packages?

    I'm on Fedora 36 KDE spin, and this is the output of qtcreator -version:

    Qt Creator 7.0.2 based on Qt 5.15.3
    
    Android 7.0.2 Support for deployment to and execution on Android Devices.
    AutoTest 7.0.2 Auto Test plugin.
    AutotoolsProjectManager 7.0.2 Autotools project integration.
    BareMetal 7.0.2 This plugin adds a target for bare metal development.
    Bazaar 7.0.2 Bazaar integration.
    Beautifier 7.0.2 Format source files with the help of beautifiers like AStyle, uncrustify or clang-format.
    BinEditor 7.0.2 Binary editor component.
    Bookmarks 7.0.2 Bookmarks in text editors.
    Boot2Qt 7.0.2 Support for the Boot2Qt Device access using the Qt Debug Bridge.
    CMakeProjectManager 7.0.2 CMake support.
    CVS 7.0.2 CVS integration.
    ClangCodeModel 7.0.2 Clang Code Model plugin.
    ClangFormat 7.0.2 clang-format indentation plugin.
    ClangTools 7.0.2 ClangTools Plugin.
    ClassView 7.0.2 Class View component.
    ClearCase 7.0.2 ClearCase integration.
    CodePaster 7.0.2 Codepaster plugin for pushing/fetching diff from server.
    CompilationDatabaseProjectManager 7.0.2 Compilation Database project support.
    Conan 7.0.2 Conan integration.
    Core 7.0.2 The core plugin for the Qt IDE.
    CppEditor 7.0.2 C/C++ editor component.
    Cppcheck 7.0.2 Cppcheck static analyzer tool integration. See http://cppcheck.sourceforge.net.
    CtfVisualizer 7.0.2 Chrome Trace Format Visualizer Plugin.
    Debugger 7.0.2 Debugger integration.
    Designer 7.0.2 Qt Designer integration.
    DiffEditor 7.0.2 Diff editor component.
    Docker 7.0.2 Basic support for Docker
    EmacsKeys 7.0.2 The main idea behind this plugin is to provide additional actions a typical emacs user would expect. It doesn't claim to provide full emacs emulation. The following actions are available:
    - Movement [C-f, C-b, C-n, C-p, M-f, M-b, C-a, C-e, M-<, M->]
    - Mark-based selection [C-SPC, C-x C-x]
    - Cut/copy/yank (doesn't provide kill ring feature) [M-w, C-w, C-y]
    - Kill actions, which interact properly with clipboard [C-k, M-d, C-d]
    - Scrolling (half of the screen, keeps cursor visible) [C-v, M-v]
    - Insert new line and indent [C-j]
    
    IMPORTANT: Actions are not bound to any key combinations by default. You can find them under 'EmacsKeys' section in keyboard shortcuts settings.
    
    Also it's worth mentioning that EmacsKeys plugin forces disabling of menu mnemonics by calling Qt's qt_set_sequence_auto_mnemonic function with false argument. Many of the english menu mnemonics get into theway of typical emacs keys, this includes: Alt+F (File), Alt+B (Build), Alt+W (Window). It's a temporary solution, it remains until there is a better one.
    FakeVim 7.0.2 VI-style keyboard navigation.
    GLSLEditor 7.0.2 Editor for GLSL.
    GenericProjectManager 7.0.2 Generic support.
    Git 7.0.2 Git integration.
    HelloWorld 7.0.2 Hello World sample plugin.
    Help 7.0.2 Help system.
    ImageViewer 7.0.2 Image Viewer component.
    IncrediBuild 7.0.2 Support for Incredibuild.
    Ios 7.0.2 Support for deployment to and execution on iOS Devices.
    LanguageClient 7.0.2 Language Server Protocol client component. See https://microsoft.github.io/language-server-protocol/overview for an overview on Language Servers.
    Macros 7.0.2 Macros in text editors.
    Marketplace 7.0.2 Qt Marketplace plugin.
    McuSupport 7.0.2 Helper for MCU related projects.
    Mercurial 7.0.2 Mercurial integration.
    MesonProjectManager 7.0.2 Meson support.
    ModelEditor 7.0.2 Graphical modeling with structured diagrams.
    Nim 7.0.2 Plugin for supporting the Nim programming language.
    PerfProfiler 7.0.2 Perf Profiler Plugin.
    Perforce 7.0.2 Perforce integration.
    ProjectExplorer 7.0.2 ProjectExplorer framework that can be extended with different kind of project types.
    Python 7.0.2 Plugin for supporting the Python language.
    QbsProjectManager 7.0.2 QBS support.
    QmakeProjectManager 7.0.2 Provides project type for Qt/QMake .pro files and tools.
    QmlJSEditor 7.0.2 Editor for QML and JavaScript.
    QmlJSTools 7.0.2 Tools for analyzing Qml/JS code.
    QmlPreview 7.0.2 Qml Preview Plugin.
    QmlProfiler 7.0.2 Qml Profiler Plugin.
    QmlProjectManager 7.0.2 Qt Quick support
    Qnx 7.0.2 Adds support for QNX to Qt Creator.
    QtSupport 7.0.2 Provides support code for build systems.
    RemoteLinux 7.0.2 Support for deployment to and execution on a remote Linux host.
    ResourceEditor 7.0.2 Editor for qrc files.
    ScxmlEditor 7.0.2 Visual Editor for SCXML (State Chart XML) files.
    SerialTerminal 7.0.2 Serial Port Terminal
    SilverSearcher 7.0.2 Adds possibility to use SilverSearcher tool as an alternative mechanism of 'find in files'
    Subversion 7.0.2 Subversion integration.
    TaskList 7.0.2 Use .tasks-files to populate the Issues view.
    TextEditor 7.0.2 Text editor framework and the implementation of the basic text editor.
    Todo 7.0.2 Adds pane that lists all TODO, FIXME, etc. entries in comments.
    UpdateInfo 7.0.2 Displays Update-Infos for Qt Installer Framework-based Updaters.
    Valgrind 7.0.2 Valgrind Plugin.
    VcsBase 7.0.2 Version Control System Base Plugin.
    WebAssembly 7.0.2 Helper for WebAssembly projects.
    Welcome 7.0.2 Secondary Welcome Screen Plugin.
    WinRt 7.0.2 Helper for Windows Runtime projects.
    

    thanks in advance!

    Edit: if instead of a QtQuick project I create a Qt Widget project and use QFileDialog, it is correclty shown, perfectly native

    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