Code Monkey home page Code Monkey logo

Comments (9)

donovaly avatar donovaly commented on August 17, 2024

Shouldn't changing line 335 of a2p_prefs.ui fix this issue?:
<widget class="Gui::PrefFileChooser" name="fileChooser" native="true">
So the change I did here:
d33a82f

from a2plus.

kbwbe avatar kbwbe commented on August 17, 2024

Shouldn't changing line 335 of a2p_prefs.ui fix this issue?:
<widget class="Gui::PrefFileChooser" name="fileChooser" native="true">
So the change I did here:
d33a82f

No. This only affects the fileChooser of the preferences page and not the fileChooser for importing parts within impartPart.py

This is written in PySide Documentation:
QFileDialog.DontUseNativeDialog | Don’t use the native file dialog. By default, the native file dialog is used unless you use a subclass of PySide.QtGui.QFileDialog that contains the Q_OBJECT() macro.
According to documentation the native fileChooser should be used by default. I am wondering if the fileChooser does this or not and why ?

from a2plus.

donovaly avatar donovaly commented on August 17, 2024

I don't know PySide. Do you get under Linux the native file dialog or also the Qt file dialog? If you get the Qt dialog, what happens if you explicitly set the "native" flag for file chooser?

from a2plus.

donovaly avatar donovaly commented on August 17, 2024

This is funny: when I use the Conda build of FC, I get Windows' native file dialog. On the "normal" FC build I get the Qt file dialog.

Since FC has to switch for all builds soon to Qt 5.x, there is in my opinion nothing to do here.

from a2plus.

donovaly avatar donovaly commented on August 17, 2024

Just for the records, my Qt designer added the native flag to the class="Gui::PrefFileChooser" because I forgot to make this custom widget known to the designer. How this is done is described here: https://www.freecadweb.org/wiki/CompileOnWindows#Additional_stuff

So in future my changes to .ui files should work out of the box.

from a2plus.

ManuelKrause avatar ManuelKrause commented on August 17, 2024

With my Conda-like openSUSE Tumbleweed FC, I only wish, that 'most recently' used folders (/ history) would be recognized for the FC and A2-plus file-openers in the same way.

from a2plus.

donovaly avatar donovaly commented on August 17, 2024

I only wish...

I don't understand. The native file dialog should be used for all tasks. Because then you get what you want - if you changed the appearance for your system-wide file dialogs you also get it with FC and thus should also get it with A2plus. For the Conda build this is already the case, at least under Windows.

So you don't get the file dialog of KDE, Gnome or whatever you use?

from a2plus.

kbwbe avatar kbwbe commented on August 17, 2024

Since FC has to switch for all builds soon to Qt 5.x, there is in my opinion nothing to do here.
Let's wait for FC switching to Qt 5.x.
For now, i close this issue.

from a2plus.

donovaly avatar donovaly commented on August 17, 2024

I fully agree.

from a2plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.