Don't work look-and-feel



  • Hello. I wrote three simple application where the system displays the FileDialog. The results are different and none is purely native.
    Use QApplication and QQuickView or QFileDialog(without QML):
    0_1565596397547_QApp.png
    Use QGuiApplication and QQmlApplicationEngine:
    1_1565596397548_qmlengine.png
    FileDialog(native) open through KWrite:
    2_1565596397548_qnative.png

    How set look-and-feel/localization like as in current system?
    Why are the results still different when using QQmlApplicationEngine and QQuickView (qml-file used by the same)?

    I use PySide2 from pip
    Qt 5.11.2 from system
    Clang 7.0.1 from system
    DE: KDE5



  • I tried set style Fusion but style app not yet perfected
    0_1567588498209_fusion.png



  • I have Qt/PyQt 5.11 installed from repositories. I run QFileDiaolg from pure Qt app and PyQt5 and now looks as it should
    I guess if Qt build for your system then should not be problem, else may be roughness with looks and fills (post above)

    Qt app from example:
    0_1568099123033_FolderQt5.png
    PyQt5 app:
    0_1568099158494_FolderPyQt5.png

    Maybe there is still some way to give the program the current system style or is it set only at compile time Qt for OS?


 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.