Is there a cross-OS GUI framework that supports embedding HTML pages?

前端 未结 9 719
感动是毒
感动是毒 2021-02-01 10:36

I want to develop a desktop app to be used cross-system (win, mac, linux), is there a GUI framework that would allow me to write code once for all 3 platforms and have a fully-s

相关标签:
9条回答
  • 2021-02-01 11:03

    wxWidgets too.

    PS: Qt interests me more for cross-platform GUI purposes.

    0 讨论(0)
  • 2021-02-01 11:08
    1. It is strange that Qt is not for you. You may be surprised to hear Sencha's Architect and Animator products use Qt and QWebView for cross platform JavaScript applications with full menus and icons and executables and system dialog boxes and file I/O.

      It currently works Windows, OSX, and Linux.

      They use an in-house developed library called ion to load and interact a JavaScript application. They provide some helper classes for JS to use.

      A simple skeleton c++ application which uses Qt to create and load a window and create a web view in that window and load html and other content from file into that view.

    2. Another solution is Adobe's Air which is like a browser with native support. It also provides deployment.

    0 讨论(0)
  • 2021-02-01 11:12

    Since my first answer was for wxWidgets and you feel Qt is not for you...
    You mentioned not javascript - note that PyQt "provides [python] bindings for Qt 2 and Qt 3". PySide is Nokia's official Python bindings for Qt. A "PyQt vs PySide" search provides interesting results:

    • on SO: https://stackoverflow.com/questions/1297660/pyside-vs-pyqt
    • Some technical diffs
    • PyQt vs PySide comparison
    • PyQt or PySide - which one to use

    There's also PythonQt but I haven't looked into it at all.

    FYI,

    • Qt Networking examples
    • Qt WebKit examples:

      Qt provides an integrated Web browser component based on WebKit, the popular open source browser engine.

      These examples and demonstrations show a range of different uses for WebKit, from displaying Web pages within a Qt user interface to an implementation of a basic function Web browser.

    • Qt also supports C#
    • and many other languages.
    • KDE (Linux Desktop Environment) uses and develops Qt

    Anything specific about Qt that makes it 'not a great fit' for you?

    0 讨论(0)
提交回复
热议问题