Earlier quoted context omitted.
It's LGPL license. I wouldn't touch it with a stick when thinking about a real app.
From their ReadMe >> wxWidgets licence is a modified version of LGPL explicitly allowing not distributing the sources of an application using the library even in the case of static linking. [1] https://github.com/wxWidgets/wxWidgets
WxWidgets 3.2
71–80 of 84 posts
Re: WxWidgets 3.2
#72Earlier quoted context omitted.
A serious question: what are native controls on Windows? Is the Windows XP era where each control is its own HWND (and usually drawn with GDI+)? Is it Windows 7 era where the drawing is Direct2D? Windows 8 where the elements of the app come together with DirectComposition? Or maybe Windows 10 style which is an evolution of UWP (now rebranded WinUI), with drawing in Win2D?
Another question: what are native controls on Linux? Qt on KDE? Gtk on Gnome? Gtk2, Gtk3, or Gtk4? Or make your own X11 widgets?
Re: WxWidgets 3.2
#73Earlier quoted context omitted.
This isn't really a fault in WxWidgets. It's not like there are any good Go or Rust UI toolkits.
>> This isn't really a fault in WxWidgets. It's not like there are any good Go or Rust UI toolkits. GTK-rs is decent for rust on Linux. Not sure how it does on other platforms.
Re: WxWidgets 3.2
#74wxWidgets are a perfect choice if you want cross-platform native controls. Just a reminder, Qt doesn't use native controls, it just emulates the native look and feel. Besides wxWidgets I know only IUP that uses system native controls (though Cocoa is a work in progress), and IUP deals with just UI, wx is like a Qt, a lot more.
Re: WxWidgets 3.2
#75Re: WxWidgets 3.2
#76Earlier quoted context omitted.
A serious question: what are native controls on Windows? Is the Windows XP era where each control is its own HWND (and usually drawn with GDI+)? Is it Windows 7 era where the drawing is Direct2D? Windows 8 where the elements of the app come together with DirectComposition? Or maybe Windows 10 style which is an evolution of UWP (now rebranded WinUI), with drawing in Win2D?
Another question: what are native controls on Linux? Qt on KDE? Gtk on Gnome? Gtk2, Gtk3, or Gtk4? Or make your own X11 widgets?
In practice, Qt looks much more native on Gnome than GTK does on KDE so you should go with Qt.
Re: WxWidgets 3.2
#77Many people don’t know about XRC, which allows you to describe a window in an XML document much like HTML. It can be edited and live reloaded. Wonderful feature.
I think many devs underestimate how important the JS world's Hot Module Replacement has become for frontend dev velocity. Live reload just makes visual work so much better.
Of course we all know the scourge that is Electron apps. Maybe now that native web view is becoming more available across desktop OS's we will see apps move to leaner frameworks. Tauri (which hit 1.0 yesterday) allows native system access, notifications, app tray, auto updates, polyglot backend via sidecars, and HTML/CSS/JS/TS frontend. Not native controls that many of us love, but much better than where we're at now.
Re: WxWidgets 3.2
#78Earlier quoted context omitted.
>> This isn't really a fault in WxWidgets. It's not like there are any good Go or Rust UI toolkits. GTK-rs is decent for rust on Linux. Not sure how it does on other platforms.
And which GTK library does it need? GTK 1, 2 ,3, 4 or 5 ?
Re: WxWidgets 3.2
#79wxWidgets are a perfect choice if you want cross-platform native controls. Just a reminder, Qt doesn't use native controls, it just emulates the native look and feel. Besides wxWidgets I know only IUP that uses system native controls (though Cocoa is a work in progress), and IUP deals with just UI, wx is like a Qt, a lot more.
Re: WxWidgets 3.2
#80Many people don’t know about XRC, which allows you to describe a window in an XML document much like HTML. It can be edited and live reloaded. Wonderful feature.
Seems cool for tweaking layout and styles on the fly, thanks for pointing this out. I think many devs underestimate how important the JS world's Hot Module Replacement has become for frontend dev velocity. Live reload just makes visual work so much better. Of course we all know the scourge that is Electron apps. Maybe now that native web view is becoming more available across desktop OS's we will see apps move to lea…
How and when views reflect the new code would be more complex, but AFAICT (from https://www.geeksforgeeks.org/hot-reload-in-electronjs/) it's not exactly magic in Electron, either--browser views are reloaded in their entirety, and the main application is restarted entirely if its sources are changed, so you can lose state. You could probably do something more sophisticated in Lua, by dynamically updating the metatables of live objects (similar to prototypes in JS). That'd be a very leaky abstraction (presumably by Electron hot reload doesn't try it). You'd need to architect your code to be robust to missing or changed object state across versions of the code, or at least to annotate which objects are capable of being hot reloaded. But Smalltalk and, to a lesser extent, Objective-C developers have experience hot patching code this way, so it can be done.