13 ms·
Wireshark 2.0: Now with Qt
- creshal 11y agoIt's a shame how far GTK is falling behind. From a user's perspective, I liked GTK2's smooth, clean interfaces much more than anything made in Qt, so much that I didn't even mind putting up with its insane APIs. But now? GTK3 interfaces are horrible from an user's perspective – client-side decorations are a sin that we should know better than to repeat, plus a whole load of changes just for change's sake to spite users (the file chooser dialog has a much worse UX; mouse wheel support was widely gutted because apparently I'm supposed to want touch interfaces instead?) –, and the APIs are still as bad to use, most changes seem to have been made out of spite; a small shim would have allowed most programs to switch from GTK2 to 3 without code changes, had it not been for those. Now I find myself increasingly switching to Qt programs. While the interfaces are still somewhat rougher than GTK2 ones and not as unified, it still beats GTK3 crap. That seems to be turning from "a reasonable toolkit for all X11 invironments" into "the official Gnome 3 toolkit, beg us if you want interoperability".
- heinrich5991 11y agoOh, I thought Wireshark was using wxWidgets before, but according to the Wikipedia page you're right.
- 72deluxe 11y agoIf only it was! It would then fit in with the OS on OSX. As it currently is, it sticks out like a sore thumb and feels like you've SSH'd to a remote Linux box.
- heinrich5991 11y agoWhat about Qt? Do Qt applications fit in in OSX?
- 72deluxe 11y agoYes, for the most part. Many of them spew messages to the console log for bad font handling etc. but for the most part they look native. wxWidgets is different because the code is native - it is a C++ wrapper around the Cocoa code, so you make calls in C++ and it actually calls Obj-C code behind the scenes (plenty of .mm files in wxWidgets). I do not know if Qt does this or whether they do their own drawing of controls in some instances. (wxWidgets does draw some of its own controls, eg. toggle button on platforms older than Yosemite/El Capitan I think)
- dubcanada 11y agoIt really is. GTK can basically be used with any language, C bindings are extremely common and there are bindings for all my favorite languages, Go, Rust, C#, etc. But the Windows compatibility of GTK is just horrendous. It seems to work now with the help of some people GTK 3+ can be used on Windows, but the icons sometimes don't work, transparency never works, expander window grippy thing doesn't look right, fonts look terrible, responsiveness is terrible, form fields look terrible and don't function normally, the list goes on and on.
- ericfrederich 11y agoI think Qt is great, but because its C++ the bindings just aren't there. Python has excellent bindings but that is a huge project in itself. If there was a decent C port of Qt then you'd get support for almost every language (well any one worth its salt) through things like ffi. I'm sure going from your favorite language through FFI to some C wrapper around a C++ library isn't the most efficient thing in the world, but for UI programming it shouldn't matter.
- mahouse 11y agoQt is not a GUI toolkit, it's a goddamn framework. An operating system by itself. :-)
- krylon 11y agoIf you have to develop cross-platform desktop applications, you pretty much have to create an abstraction between your app and the OS interface. Qt makes that relatively easy and painless.
- timonovici 11y agoAFAIK both GTK and GIMP severely lack Windows contributors - what else is to be expected, than shitty experience on that platform? If I remember well, a few years ago GIMP even stoped publishing it's Windows builds, because there wasn't no one to take care of them. Complaining won't make much of a difference - but sending bug reports, patches will.
- bkor 11y agoI mostly disagree with you entirely. Client side decorations give way more space to the actual content than to waste space for an almost empty titlebar. It allows to combine the titlebar with content from the application itself. You regard them entirely off as a "sin". Very strong language but you don't explain _at all_! For the file chooser, some never things that were never implemented were added recently: double vs single clicking, renaming and some other super old bug. Regarding mouse wheel support: What basis do you say that 1) it was removed 2) it was made out of spite? Too many people have way too much time talking down on the work of others. You go out of your way to imply that GNOME developers are intentionally evil. What the hell. PS: I agree it needs way more developers. But that's nothing new.
- bemused 11y agoworked with GTK2/3 and QT 5+ years and got the feeling that GTK has been turning into the GNOME toolkit as well. not very pleasant to work with if you want your application to support the look&feel of different linux-DEs and not suited for cross-platform applications at all GTK3 is perfect if you want to develop for the GNOME desktop. for anything else it would need way more developers that are not focused on GNOME
- nona 11y agoHow is that surprising? The people that do the work get to set the course of the project; the Gnome devs are scratching their own itch. QT caters to more platforms, because QT _is_ Digia/The QT company's product. For Gnome devs Gnome is the product. So yeah, I agree with you: GTK3 is great if you do Gnome, QT otherwise. But some people in this thread (not you) seem to blame or resent Gnome developers for doing their jobs, which strikes me as odd, to say the least.
- bemused 11y agoWell I really dont want to critize GNOME developers for working on free software, paid or not. But GTK is still perceived as a more universal toolkit than "just GNOME" and this might be a time-consuming surprise that hits application developers furthermore it is still advertised like this as well (from gtk.org): What is GTK+, and how can I use it? GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating graphical user interfaces. Where can I use it? Everywhere! GTK+ is cross-platform and boasts an easy to use API, speeding up your development time. from my point of view, this is not exactly true anymore ..
- ronjouch 11y agoCan you elaborate why "client-side decorations are a sin that we should know better than to repeat" ? From a subjective user perspective, I like them for enabling controls in titlebar, which paved the way for compact, elegant windows --i.e. height(clientside_titlebar_with_controls) < height(regular_titlebar + menubar + toolbar)--. What's objectively bad about them? Other than that, describing GTK3 as "the official Gnome 3 toolkit, beg us if you want interoperability" seems pretty accurate. I personally enjoy the experience provided by GNOME 3, but will never, ever, use a GTK app under Windows or Mac OSX. They just look and feel terribly out of place. However, does GTK have much choice given the resources at hand? - With the Adwaita theme now being rolled into GTK itself, it's becoming clear the GNOME/GTK folks are not aiming at a good Mac/Windows experience, they're maximizing for Linux + the whole GNOME shebang. - Could they do otherwise? Qt is backed by a big team at the Qt Company (ex Digia / Nokia / Trolltech) with commercial interest to support big $$$ Windows/Mac-based enterprise apps, while GTK seems maintained by a smaller core team of RedHat/Fedora folks, Canonical not so much, and individual contributors. I think they're just focusing.
- scrollaway 11y agoA few posts on the subject of CSDs, by the developer of KWin (he knows his shit): * http://blog.martin-graesslin.com/blog/2010/05/open-letter-the-issues-with-client-side-window-decorations/ http://blog.martin-graesslin.com/blog/2010/05/open-letter-th... * http://blog.martin-graesslin.com/blog/2010/05/why-you-should-not-use-client-side-window-decorations/ http://blog.martin-graesslin.com/blog/2010/05/why-you-should... * http://blog.martin-graesslin.com/blog/2010/05/follow-up-on-client-side-decorations/ http://blog.martin-graesslin.com/blog/2010/05/follow-up-on-c... * http://blog.martin-graesslin.com/blog/2015/11/october-plasma-on-wayland-update-all-about-geometry/ http://blog.martin-graesslin.com/blog/2015/11/october-plasma...
- ronjouch 11y agoThanks! They're dense, will read them at home. But looking at the first link (which is kind of a summary if my understanding is correct), I don't see any mention of the most important benefit to me: controls-in-titlebar. Am I missing something? Is Martin avoiding it, or is it a non-problem that could have been solved without CSDs?
- dheera 11y agoFrankly, I don't care about GTK vs. Qt. From a user standpoint, what I wish for the most is that apps have a unified look and consistency. File dialog bookmarks should be synced. If I change theme in one, it should change theme in the other. If I change fonts in one, it should change fonts in the other. If I plug in a 4K display, all apps should scale DPI identically. And from a programmer's standpoint, I wish we could end this battle already and someone just tell me what to use so that my app can become a part of everyone else's consistent look.
- 72deluxe 11y agoGTK applications have never fitted in on OSX or Windows for me. They look like bad Java applications, and some ignore the system menu bar etc. on OSX. No great loss.
- digi_owl 11y agoAt this point in time i feel the Linux world is split in two camps. The "old" camp that has been with the ecosystem since the late 90s, and the new camp that came in with the post-dot-com/browser-war cheap and easy access to LAMP servers. The former knows Linux from the kernel up, where the desktop is for the most part a way to deal with things that can't be represented in text. The latter knows Linux from the desktop down, and want those shiny graphics everywhere. GTK2 is of the old group, where tweaking and maximizing personal efficiency was king. GTK3 is old the new group, where presenting some kind of top down design experiences is paramount. Hell, it may not even be limited to Linux. Look at how Slack is getting all manner of attention, even though at its base it is IRC recreated. But now you can plaster every line with emoji(?!). Damn it, i should not be feeling like a grumpy old geezer. I'm not even half way to retirement...
- s73v3r 11y agoSlack may be IRC recreated, but at least for groups/businesses, they've definitely fixed a lot of the pain points of IRC. No arcane signup process, extremely simple sharing of files, perpetual history, etc.
- mindcrime 11y agoI kinda feel like Gnome/GTK peaked about 2001 or 2002, and has been in a steady decline ever since. OTOH, KDE/QT hit a local maxima around the same time, then dropped off, but has been improving for the past couple of years (with a few small ups and downs mixed in). I've switched to KDE Plasma desktop on Fedora as my primary work environment now and couldn't be happier. If I wanted to write a native X app now, I'd definitely be thinking QT. When QT first switched to LGPL, I hoped it would result in an explosion of interest in that environment. In hindsight, "explosion" would probably be an overstatement, but the K/QT world does seem to have been growing and improving since then.
- jaybosamiya 11y ago> There are many more keyboard shortcuts in Wireshark 2. The full list of those shortcuts can be found from the "Help" menu. In addition, individual windows have their own shortcuts, which can be listed from the window itself. More keyboard shortcuts always makes me happy. Less usage of that tiny little touchpad on my laptop.
- WhitneyLand 11y agoI wonder if they would have considered HTML5 if NW.js / Electron had been around when they started.
- mahouse 11y agoFor the UI of a serious program that requires performance?
- WhitneyLand 11y agoWhat UI in the app would exceed the performance limits? You realize there is a lot of hardware acceleration available in the browser?
- mahouse 11y agoWhen you have to draw 1000 new packets per second for example?
- scrollaway 11y agoPlease stop with the HTML5 UI madness. While HTML/CSS is, imo, a great UI toolkit, nobody wants a browser engine in every separate application. A browser engine that needs to be kept up to date with upstream on an extremely regular basis, separately for every app, lest you are vulnerable to whatever exploit of the month.
- geofft 11y agoIt's a browser engine running trusted code (i.e., code that is currently running with full privileges on your account), so the attack surface is much lower than a browser engine visiting random web pages. Wireshark won't suddenly start playing a Flash animation or use WebGL or anything. And it's not like GTK+ or Qt are immune from having security vulnerabilities. They're rarer than the general class of browser vulnerabilities, but they exist (e.g. Qt had a few image decoder vulnerabilities earlier this year). I'd guess they're about as frequent as the specific subset of browser vulnerabilities when viewing a trusted website. If it's a helpful analogy, this is roughly like how Java is a terrible platform for running untrusted applets, but a perfectly fine platform for running software and a very common one for security-sensitive servers. (Except the browsers themselves are way better than the Java plugin.)
- noselasd 11y agoNote that 2.0 still can be used with GTK. I'm a daily wireshark user and had to switch back to the GTK version - the Qt version is currently incredible buggy - at least on Windows.
- ultramancool 11y agoYeah, I've noticed a few issues, particularly with copying bytes via context menus, sometimes the sub menus don't appear. Ah well, overall I'm glad they went in this direction as now I can use it on my MacBook without having to get X11.
- jabjoe 11y agoI've found it locks up on Linux sometimes. Like I found Clementine when I was stuck on Windows. Having worked with QT, and it's asynchronous'ness, I can see it's easy to make dead lock mistakes, and I think that is probably what is happening.
- bkor 11y agoPlease file bugs! It is sometimes surprising what developers don't notice. At most you'll file a duplicate. One bug per issue is usually best.
- tenfingers 11y agoI'd say good riddance GTK3. I really liked GTK1/2, to be honest. I liked the column-based (unixy) file dialogs, detachable menus that you could use as a poor-mans toolbars, and many minor tweaks. The API was always horrendous (it still is!), but as user I liked it so I just coped as a developer anyway. Since the full embrace of gnome, I started to dislike GTK2/3 more and more. The stupidity of file dialogs starting in "recents mode" also for save, to name one. Saving a file again? You see restarting at the top directory, just like in windows. Well, it's because the file dialogs don't have any saved state if you happen to destroy the dialog instance. A tweak that costs literally nothing to implement, but probably "not granma friendly"? GTK3 is also downright slow. The new theming mechanism might be fancy, but objectively I have some UIs that I left at GTK2 intentionally for lower latency. I re-evaluated QT4 as a user. The API and developer tools are just light-years ahead. It's unfortunate that I cannot say I like the evolution of QT5.
- ultramancool 11y agoBeen using Qt5 for quite a while at work - what changes don't you like in it? Most things seem to just be relatively minor improvements from Qt4.
- deleted 11y ago[deleted]
- tenfingers 11y agoAs for GTK3, rendering performance, latency and memory usage in QT5 suffer significantly. QT4 is not light, but QT5 adds overhead for no reason. I like the general polishing in the core modules, but I have really no use for qtquick. For this reason, I really encourage anyone to get onto copperspice (http://www.copperspice.com/ http://www.copperspice.com/). Without MOC, QT really feels an awesome API.
- ultramancool 11y agoWhile I can't say I've experienced any significant memory usage or latency issues (possibly because I'm targetting recent hardware and working with large volumes of data), I'm completely in the same boat with QtQuick and CopperSpice does look quite interesting, I'll have to check it out.
- dorfsmay 11y agoTwo things about Witeshark that I hadn't realised until recently but that changed my life: - Wireshark has a Command Lime Interface that is very usable and incredibly useful to debug a machine you can only ssh to: tshark - you can look at packets captured with tcpdump with Wireshark/tshark
- Kurtz79 11y agoCommand lime would be a great name for a shell :) Jokes aside (sorry), it's an absolute godsend when trying to debug embedded systems.
- dorfsmay 11y ago(now I'm going to spend the rest of the day thinking about how I could make a funny pun based on my typo!) Life saver when debugging even mundane web servers: tshark -i eth0 -O http -Y http This is one place where TLS (https) everywhere is a pain.
- deleted 11y ago[deleted]
- shmerl 11y agoI wish Firefox would also start using Qt.
- nwah1 11y agobrowser.html makes more sense. Web standards are, at this point, their own form of GUI toolkit, and why does Firefox need more than one? It is just bloat. https://github.com/mozilla/browser.html https://github.com/mozilla/browser.html
- rhodysurf 11y agoNative appearance maybe?
- shmerl 11y agoMozilla rejected this webbiness approach in their own release on Android using the excuse that Android applications cheat because Android runtime is always loaded in memory, while any other runtime has to be loaded which causes a startup delay. It actually caused them to kill Fennec which had portable UI, and instead create an unportable Android UI. So if they already stick with native UIs, let them use Qt.
- topspin 11y agoWatched someone via GoToMeeting try to use 2.0 yesterday on a Windows server. They couldn't start capture on the interface; start button grey'd out with no explanation. Installed the older version (1.12.8) and it worked perfectly. QT is great and all but I'll have to stick with the legacy stuff for a while.
- NetStrikeForce 11y agoI've used 2.0 on a Server 2016 TP4 and two different Windows 10 with zero problems. The person you've seen running it probably didn't install Winpcap or something along those lines, hence why installing 1.12.8 solved the issue. My main criticism is that I don't get a separate window telling me the progress of the file loading. I work sometimes with big files and it takes a few seconds to load them. On 2.0 at first I didn't know what was going on, because there's only this very tiny progress bar at the bottom.
- NelsonMinar 11y agoI've been using the 1.99 builds on my Mac for, oh, a year now. And I'm so grateful. It works great and was miles ahead of the old X11-based thing.