-
Notifications
You must be signed in to change notification settings - Fork 1k
qTox uses Qt's file picker #3494
Comments
Probably the only unweird file dialog on a weird system… :) |
It's a regression due to #3447 |
#ifdef Q_OS_WIN32
Jada Windows bullshit blabla…
#else
Everyone else…
#endif It's not a regression, it's the way Windows likes to be "special"! 😄 |
IOW: We decided for Qt's consistent rendering, which is totally fine and not weird (whatever that means…)! |
@antis81 eh. The problem was that GTK decided to break things, and arch obviously had to use broken stuff, which resulted in qTox crashing when it tried to use (allegedly native, according to broken system info) file picker. |
As for the PR, it made experience for anyone who was able to use native file picker simply horrible. Qt has a shitty file picker – while I didn't have support for native file picker on my system, there are systems where shitty Qt file picker is replaced with a nice native one that integrates well with users' system. |
Does it? Interesting, to me it looks like - well, like a quite usual file-open-dialog, and a nice one as well: Plus, it avoids unexpected crashes by incompatible or broken 3rd party libs. However, we can enhance that solution and introduce a settings flag, where users can chose to use a platform-independent, working solution or the system's "native" file-dialog. no problem. Yet I'd like to know: |
@antis81 yep, this one is crappy when compared to capabilities provided by a well-integrated, native file picker. |
@TheNain38 Pleas show your crappy explorer manager (aka screenshot), which will help greatly to get an experience about what your actual problem is. :) I guess I'll add a settings flag and make it selectable by user. |
@antis81 Well, with the native file picker, you can go to the usual places, like, downloads etc... super easly, and it's much more convenient than Qt's file picker, which is pure shit, compared to what the system one can do, Qt's one work, but it's really, really... well, non convenient :) |
@TheNain38 Windows file picker is pure shit… :) |
@antis81 It's still muccch better than Qt's one, because it's well integrated into the system |
It is very nice file picker! Most of people will drag-and-drop files without using picker at all. |
@TheNain38 Ok, it's a neat game to play and I just love bashing Windows wherever possible. Sorry, can't help… :) Yet I respect you and you for sure have good arguments why using Windows works for you… If you read my comment above, you'll find, that I tried making a "conciliable offer", which is by making it selectable by the user, if he/she likes the "green" or the "blue" dialog better. This is quite simple to implement and unlike the native dialog, doesn't introduce a real regression. Agree'd? @anoadragon453 Would you mind extending your recent PR #3447 and implement something like this: namespace qTox {
class FileDialog {
static inline QFileDialog::Options fileDialogOptions() {
// read options from settings
return Settings::getInstance().getFileDialogOptions();
}
static inline QString getOpenFileName(…) {
// set options depending on qTox settings
QFileDialog::Options opts = fileDialogOptions();
return QFileDialog::getOpenFileName(…, opts);
}
// TODO: wrap all static public function from QFileDialog
};
} @ElLamparto It is very nice file picker!… Which one do you mean? |
@antis81 Yes, I saw that ^^ Else, I agree with adding a setting, to choose between Qt's file picker, and the native one, I suggest that using the native one as the default, it is better, since only some systems have problems, what is your opinion, on what I said? |
Will become default, yep. |
@antis81 Yep I can do that. |
@antis81 I don't know how it seen on windows. But for me it's little bit ugly :( |
@Diadlo Whoohoo, dark style. :) Looks like you are using a dark system theme, are you? If so, qTox may set the "black" font in it's theming - which is wrong here. I'll have a look into that. |
Yes, I use dark system theme |
@Diadlo I found the problem! Have a look into mainContent.css, which styles almost each and every widget in qTox and therefore creates a mixed up system/qTox style! This is basically not what we want, especially when "system dialogs appear". @TheNain38 Please provide a screenshot of how it looks on windows. Probably also one for your native dialog. @zetok CC |
@antis81 Also, there's one thing, Qt's file picker is in English, even if my system is set to French. |
@TheNain38 Probably your qTox is set to English?? |
@antis81 No, it's set to French |
=> #2499 |
@ovalseven8 Thanks - so this one is actually (well, kind of) a duplicate. Please leave both open until PR is ready.
You're right. I tried with German language on Lubuntu system. All of the UI elements (button, label, etc.) are translated, but the folders in the "left area" (favorites, places, or whatever you want to call it) are not. So translation is ~99%, but not like I'd expect it to be as a user. |
@antis81 no, this isn't a duplicate. The other issue is a packaging problem, while this one is about regression in qTox code. |
@ElLamparto Both audio & video problems are largely there due to insufficient testing of merged audio & video stuff. Have you tried to test PRs? If not, you might want to :) |
Is there any news on this? |
No. |
@TheNain38, personally I like the Qt picker. Anyway, like most people, I use drag and drop to transfer files. Rarely the picker. For me it is a very, very low priority issue. |
@antis81 suggest good solution: add file manager type selection to settings |
Is there anyone willing to take on this issue? |
As I can see -- no one |
Would this not just be a simple |
maybe we can even find a proper solution so we can use the native file dialog where possible and only use the Qt one where it's needed. |
Well windows and Mac should always return their file picker. Is there a
way to consistently get the DE's one on Linux and return Qt's if none
are found (i.e. tiling wm's)?
…On 07/04/2017 02:06 AM, sudden6 wrote:
maybe we can even find a proper solution so we can use the native file
dialog where possible and only use the Qt one where it's needed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3494 (comment)>, or
mute the thread
<https://github.com/notifications/unsubscribe-auth/ABR7mAdJSlklvEmpvjDEiMUzgHn7dxTqks5sKgCAgaJpZM4JHN73>.
|
Maybe we can use a system similar to https://github.com/qTox/qTox/blob/master/src/widget/systemtrayicon.cpp And use a whitelist of working DE's for the native dialog? |
That looks fine, as long as KDE having Qt's native one is fine. ...does KDE have it's own file picker? |
Yes, the KDE one is slightly different to the Qt one |
Alright, well now one just has to figure out how to launch each of those from Qt pointing to a specific folder and we should be good. As I said I can take a crack at this, though possibly in a couple days, after July 4th and all that. |
IIRC switching to the native file picker is just changing a parameter to Take your time and enjoy your holidays :) |
Oh yeah, I forgot how nice Qt is. Thanks :) |
The original reason that the Qt picker was used instead of the native picker was that the native option would cause Nautilus/GNOME-based pickers to hang. The Qt picker has reduced functionality and does not integrate well into themes, thus the native picker has been restored for all distros/DEs besides GNOME. Fixes qTox#3494
The original reason that the Qt picker was used instead of the native picker was that the native option would cause Nautilus/GNOME-based pickers to hang. The Qt picker has reduced functionality and does not integrate well into themes, thus the native picker has been restored for all distros/DEs besides GNOME. Fixes qTox#3494
The original reason that the Qt picker was used instead of the native picker was that the native option would cause Nautilus/GNOME-based pickers to hang. This turned out to be due with a Qt bug with parenting Gtk windows. As a result the parent of each file dialog window has been set to NULL, eliminating the crash. As far as tests have shown, this produces no adverse effects on either floating or tiling wms. Fixes qTox#3494
The original reason that the Qt picker was used instead of the native picker was that the native option would cause Nautilus/GNOME-based pickers to hang. This turned out to be due with a Qt bug with parenting Gtk windows. As a result the parent of each file dialog window has been set to NULL, eliminating the crash. As far as tests have shown, this produces no adverse effects on either floating or tiling wms. Fixes qTox#3494
Brief Description
OS: Windows
qTox version: v1.4.0-252-g34fb127
Commit hash: 34fb127
toxcore: 0.0.0
Qt: 5.5.1
Reproducible: Always
Steps to reproduce
Observed Behavior
A non pratical and weird file picker is used, and qTox is the only application to use that weird one, instead of the system one
Expected Behavior
qTox uses the system file picker on Windows
The text was updated successfully, but these errors were encountered: