Menu

#286 Open dialog window is empty

1.3.2
pending
None
5
2021-08-09
2021-02-22
No

Hi, I'm using chessx in Kubuntu 20.4. The opening dialog, like the save window, does not display any files or directories. ChessX version 1.4.6.0 UNIX GNU Qt5.12.5
If I' want open a pgn file, the dialog windows is empty. It happens on my 2 computers with Kubuntu 20.4. and 1 Kubuntu 2.10. Same with the save dialog window. On another computer running Debian Buster, everything works great. ( ChessX version 1.4.6.0 UNIX GNU Qt5.11.1)

1 Attachments

Related

Bugs: #286

Discussion

  • Jens Nissen

    Jens Nissen - 2021-02-23

    Linux and Windows occasionally have issues displaying native file dialogs. There is a workaround which helps in case you compile ChessX yourself: Add the flag QFileDialog::DontUseNativeDialog
    to all calls of open / save file dialogs.

     
  • Jens Nissen

    Jens Nissen - 2021-02-24
    • status: open --> pending
     
  • Rusen Dusen

    Rusen Dusen - 2021-03-22

    Same issue here with 20.04 and 1.5.7beta
    and file dialog is quite slow to open

     

    Last edit: Rusen Dusen 2021-03-22
  • IAHM-COL

    IAHM-COL - 2021-08-08

    Hi,

    I cannot reproduce this issue:

    @decenk,
    I would suggest to recompile with a newest version to test again:

    I am using:

    ChessX : Version 1.5.7 from Git:
    Commit: 7175f4c
    Gnome: 3.34.7
    Note: The issue indicated by @hognose above(DontUseNativeDialog) is a problem for Gnome to display Qt File Open Dialogs, but it should not affect KDE Plasma. However, I am using gnome and it works fine.
    Compiled against: Qt5.12.7
    Note: The current git version 1.5.7 requires Qt>5.14.1, or some source code editions are required for succesfully compile. Please compile with Qt>5.14.1

     

    Last edit: IAHM-COL 2021-08-08
  • František Bublík

    It only happens in the Plasma environment. If I use in Kubuntu e.g. XFCE or MATE chessx works well.

     
  • IAHM-COL

    IAHM-COL - 2021-08-08

    @decenk,

    It only happens in the Plasma environment.

    This is interesting. I don't have a KDE plasma on hand, only Gnome and Xfce. For me, it works O.K. on Gnome 3.x

    You indicated above:

    ChessX version 1.4.6.0 UNIX GNU Qt5.12.5

    I am curious, did you attempt to reproduce this issue with a newer version?

    ie, ChessX version 1.5.6 (current release available).

    If it stills happens in 1.5.6, we can try testing if DontUseNativeDialog changes the behavior, as @hognose proposed above.

     
    • František Bublík

      Ubuntu 20.04.2 LTS
      QMake version 3.1
      qmake -recursive
      Project ERROR: Unknown module(s) in QT: svg multimedia
      What is missing?

      IAHM-COL píše v Ne 08. 08. 2021 v 12:27 +0000:

      @decenk,

      It only happens in the Plasma environment.

      This is interesting. I don't have a KDE plasma on hand, only Gnome
      and Xfce. For me, it works O.K. on Gnome 3.x

      You indicated above:

      ChessX version 1.4.6.0 UNIX GNU Qt5.12.5

      I am curious, did you attempt to reproduce this issue with a

      newer version?

      ie, ChessX version 1.5.6 (current release available).

      If it stills happens in 1.5.6, we can try testing if
      DontUseNativeDialog changes the behavior, as @hognose proposed
      above.


      [bugs:#286] Open dialog window is empty

      Status: pending
      Group: 1.3.2
      Created: Mon Feb 22, 2021 11:32 PM UTC by František Bublík
      Last Updated: Sun Aug 08, 2021 10:36 AM UTC
      Owner: Jens Nissen
      Attachments:

      Hi, I'm using chessx in Kubuntu 20.4. The opening dialog, like the
      save window, does not display any files or directories. ChessX
      version 1.4.6.0 UNIX GNU Qt5.12.5
      If I' want open a pgn file, the dialog windows is empty. It happens
      on my 2 computers with Kubuntu 20.4. and 1 Kubuntu 2.10. Same with
      the save dialog window. On another computer running Debian Buster,
      everything works great. ( ChessX version 1.4.6.0 UNIX GNU Qt5.11.1)


      Sent from sourceforge.net because you indicated interest in <
      https://sourceforge.net/p/chessx/bugs/286/>

      To unsubscribe from further messages, please visit <
      https://sourceforge.net/auth/subscriptions/>

       

      Related

      Bugs: #286

  • IAHM-COL

    IAHM-COL - 2021-08-08

    @decenk,

    For your output,

    Project ERROR: Unknown module(s) in QT: svg multimedia
    What is missing?

    You need svg and multimedia Qt5 modules to compile it;

    Try installing both libqt5svg-dev and qtmultimedia5-dev before attempting qmake again,

    ie

    $ sudo apt-get install libqt5svg5-dev qtmultimedia5-dev
    $ qmake -recursive
    
     
  • IAHM-COL

    IAHM-COL - 2021-08-08

    @decenk,

    It is worth trying the DontUseNativeDialog mode to see if that changes anything for your setup.

    To do that,

    1. download new modified sources from here:

    (Link removed) Patch added below

    1. Unzip them, and enter the new directory,
    2. compile again.
    3. Then test if this version solves the issue on your end.
     

    Last edit: IAHM-COL 2021-08-09
    • František Bublík

      The compilation fails with error 1:


      src/database/filtermodel.cpp: In static member function ‘static
      QStringList FilterModel::additionalTags()’:
      src/database/filtermodel.cpp:106:64: error: ‘SkipEmptyParts’ is not a
      member of ‘Qt’
      106 | QStringList tags = addTags.split(QRegExp("[^a-zA-Z]"),
      Qt::SkipEmptyParts);
      |
      ^~~~~~~~~~~~~~
      make: *** [Makefile:3374: obj_rel/filtermodel.o] Chyba 1


      IAHM-COL píše v Ne 08. 08. 2021 v 17:00 +0000:
      @decenk,

      It is worth trying the DontUseNativeDialog mode to see if that
      changes anything for your setup.

      To do that,

      1. download new modified sources from here:

      ChessX-1.5.7-noNativeDialog

      1. Unzip them, and enter the new directory,
      2. compile again.
      3. Then test if this version solves the issue on your end.

      Differences with current version


      [bugs:#286] Open dialog window is empty

      Status: pending
      Group: 1.3.2
      Created: Mon Feb 22, 2021 11:32 PM UTC by František Bublík
      Last Updated: Sun Aug 08, 2021 04:04 PM UTC
      Owner: Jens Nissen
      Attachments:

      Hi, I'm using chessx in Kubuntu 20.4. The opening dialog, like the
      save window, does not display any files or directories. ChessX
      version 1.4.6.0 UNIX GNU Qt5.12.5
      If I' want open a pgn file, the dialog windows is empty. It happens
      on my 2 computers with Kubuntu 20.4. and 1 Kubuntu 2.10. Same with
      the save dialog window. On another computer running Debian Buster,
      everything works great. ( ChessX version 1.4.6.0 UNIX GNU Qt5.11.1)


      Sent from sourceforge.net because you indicated interest in <
      https://sourceforge.net/p/chessx/bugs/286/>

      To unsubscribe from further messages, please visit <
      https://sourceforge.net/auth/subscriptions/>

       

      Related

      Bugs: #286

  • IAHM-COL

    IAHM-COL - 2021-08-08

    Hi @decenk,

    Yes. I know that problem. Its just the new code needs a higher Qt version that what your distro brings you.

    The easiest way to compile is using some few changes:

    (Link removed)Patch added below

    Then you can try compiling again

     

    Last edit: IAHM-COL 2021-08-09
    • František Bublík

      Hi,
      the last source code compiled well and the bug in the program is no
      longer reflected. Thanks for the great application and respect for your
      work.
      Regards František Bublík

      IAHM-COL píše v Ne 08. 08. 2021 v 21:25 +0000:

      Hi @decenk,

      Yes. I know that problem. Its just the new code needs a higher Qt
      version that what your distro brings you.

      The easiest way to compile is using some few changes:

      Download the modified code here

      Then you can try compiling again


      [bugs:#286] Open dialog window is empty

      Status: pending
      Group: 1.3.2
      Created: Mon Feb 22, 2021 11:32 PM UTC by František Bublík
      Last Updated: Sun Aug 08, 2021 05:00 PM UTC
      Owner: Jens Nissen
      Attachments:

      Hi, I'm using chessx in Kubuntu 20.4. The opening dialog, like the
      save window, does not display any files or directories. ChessX
      version 1.4.6.0 UNIX GNU Qt5.12.5
      If I' want open a pgn file, the dialog windows is empty. It happens
      on my 2 computers with Kubuntu 20.4. and 1 Kubuntu 2.10. Same with
      the save dialog window. On another computer running Debian Buster,
      everything works great. ( ChessX version 1.4.6.0 UNIX GNU Qt5.11.1)


      Sent from sourceforge.net because you indicated interest in <
      https://sourceforge.net/p/chessx/bugs/286/>

      To unsubscribe from further messages, please visit <
      https://sourceforge.net/auth/subscriptions/>

       

      Related

      Bugs: #286

  • IAHM-COL

    IAHM-COL - 2021-08-09

    @decenk,
    I am glad it works.

    @hognose

    Linux and Windows occasionally have issues displaying native file dialogs. There is a workaround which helps in case you compile ChessX yourself: Add the flag QFileDialog::DontUseNativeDialog
    to all calls of open / save file dialogs.

    This suggestion you proposed worked for Frantisek (see above)

    However,

    I am not completely sure what route you'd like to take with this issue

    As it is not a direct bug for ChessX.

    • Would you mark as Won't Fix ?

    This makes sense given that the No-Native QFileDialogs are not nicely integrated with each user's DE experience, and thus it looks less polished.

    • Would you amend master?

    This makes sense given that the No-Native QFileDialogs offers correct performance in all devices and DE configurations.

    In case you want to change the code

    Find a patch attached,

    Regards,
    @iahm-col

     

    Last edit: IAHM-COL 2021-08-09

Log in to post a comment.