Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to debug non-visible main window?
Forum Updated to NodeBB v4.3 + New Features

How to debug non-visible main window?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 180 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.
  • B Offline
    B Offline
    Basile_Starynkevitch
    wrote on last edited by
    #1

    Hello all,

    The RefPerSys project is an open source symbolic artificial intelligence (GPLv3+) project for Linux/x86-64 (only; we don't care about other OSes), e.g. Ubuntu 21. In the long term RefPerSys needs to have a web interface, but the RefPerSys team (see mail messages on the RefPerSys forum) is today lacking web programming skills. So as a temporary workaround (to create thousands of RefPerSys objects, including those which will generate C++ code), we sadly need a Qt5 GUI interface.

    In its git commit 61ed3f6ead45a we have some unusual software architecture: the main program does not use or link Qt5. Since our wish is to generate a lot of C++ code and to eventually have a web interface (using libonion). Our lack of web expertise forces us to provide temporarily a Qt GUI interface (to "bootstrap", that is later generate C++ code, implementing our web interface). But with a specific program option (after building with a successful make all), when running

    ./refpersys --Qt -AGUI
    

    the ./refpersys process is dlopen-ing a shared object which contains all the Qt related stuff. That shared object is ./tempgui-qrps.so and only it contains Qt specific code. In particular, the C++ code creating (our Qt subclass of) QApplication is only there, in C++ file tempgui-qrps.cc in functions rps_tempgui_init_progarg (creating QApplication and Qt main windows) and rps_tempgui_run (running the Qt event loop). Both are dlsymed.

    Thanks for your help. My Qt skills are really rusty. (if possible, reply also by email)

    Regards

    Basile Starynkevitch basile@starynkevitch.net, near Paris in France.

    Basile Starynkevitch <basile@starynkevitch.net>
    (only mine opinions / les opinions sont miennes uniquement)
    92340 Bourg-la-Reine, France
    web page: starynkevitch.net/Basile/
    See/voir: https://github.com/RefPerSys/RefPerSys

    SGaistS 1 Reply Last reply
    0
    • B Basile_Starynkevitch

      Hello all,

      The RefPerSys project is an open source symbolic artificial intelligence (GPLv3+) project for Linux/x86-64 (only; we don't care about other OSes), e.g. Ubuntu 21. In the long term RefPerSys needs to have a web interface, but the RefPerSys team (see mail messages on the RefPerSys forum) is today lacking web programming skills. So as a temporary workaround (to create thousands of RefPerSys objects, including those which will generate C++ code), we sadly need a Qt5 GUI interface.

      In its git commit 61ed3f6ead45a we have some unusual software architecture: the main program does not use or link Qt5. Since our wish is to generate a lot of C++ code and to eventually have a web interface (using libonion). Our lack of web expertise forces us to provide temporarily a Qt GUI interface (to "bootstrap", that is later generate C++ code, implementing our web interface). But with a specific program option (after building with a successful make all), when running

      ./refpersys --Qt -AGUI
      

      the ./refpersys process is dlopen-ing a shared object which contains all the Qt related stuff. That shared object is ./tempgui-qrps.so and only it contains Qt specific code. In particular, the C++ code creating (our Qt subclass of) QApplication is only there, in C++ file tempgui-qrps.cc in functions rps_tempgui_init_progarg (creating QApplication and Qt main windows) and rps_tempgui_run (running the Qt event loop). Both are dlsymed.

      Thanks for your help. My Qt skills are really rusty. (if possible, reply also by email)

      Regards

      Basile Starynkevitch basile@starynkevitch.net, near Paris in France.

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      @Basile_Starynkevitch said in How to debug non-visible main window?:

      we sadly need a Qt5 GUI interface.

      Why so sad ?

      More seriously, you might not be aware yet but you can use Qt for WASM and serve your Qt GUI as a web application.

      That might alleviate your web skills workforce requirements.

      Can you explain the current issue you have ?

      Failure to start the application ?
      Nothing shown at all ?
      Any message on the terminal ?
      Did you try to start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see what is happening ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved