News for hackers. Stuff that matters.
Re:Gooey: A GPU-accelerated UI framework for Zig by coffeeaddict1 on Wednesday June 03, 2026 @04:37PM (#48389655)
This is what you can with Qt:

    #include <QApplication>
    #include <QWidget>
    #include <QPainter>

    class widget : public QWidget {
    void paintEvent(QPaintEvent*) override {
        QPainter(this).drawEllipse(QPoint(320, 240), 100, 100);
    }
    };

    int main(int argc, char *argv[]) {
        QApplication app(argc, argv);
        widget w;
        w.resize(640, 480);
        w.show();
        return app.exec();
    }

It doesn't seem too complicated to me.
Re:Gooey: A GPU-accelerated UI framework for Zig by ecshafer on Wednesday June 03, 2026 @04:45PM (#48389770)
That doesn't seem too bad, I agree. Maybe that's why QT is used. I haven't really used QT, but the more modern Windows apis, vulkan, etc all are pretty complicated.
Re:Gooey: A GPU-accelerated UI framework for Zig by cwillu on Wednesday June 03, 2026 @05:52PM (#48390663)
FWIW, vulkan is not a GUI library; if you're reaching for it without a clear understanding of why you're doing so, yeah, it'll seem like a very complicated way of doing things.
Re:Gooey: A GPU-accelerated UI framework for Zig by TheRoque on Wednesday June 03, 2026 @07:38PM (#48391626)
Vulkan is a graphics API, not a UI library or framework. It's way lower level and if your goal is to make a user interface, you're not really supposed to do it with Vulkan (but you could i guess)
Re:Gooey: A GPU-accelerated UI framework for Zig by nandomrumber on Wednesday June 03, 2026 @07:11PM (#48391354)
It’s Qt and pronounced ‘cute’.

https://en.wikipedia.org/wiki/Qt_(software)

Re:Gooey: A GPU-accelerated UI framework for Zig by jetbalsa on Wednesday June 03, 2026 @05:22PM (#48390265)
Thats why I've always like pytk

    from tkinter import \*

    root = Tk()
    a = Label(root, text ="Hello World")
    a.pack()

    root.mainloop()
Re:Gooey: A GPU-accelerated UI framework for Zig by nnevatie on Thursday June 04, 2026 @01:09AM (#48394199)
Yeah, it doesn't look too bad on the surface. However, Qt is bad and I'd advice moving away from it if you can. This is based on ~20 years of experience using it in various projects.

The licensing is trying to paint a picture of LGPL being somehow uncertain/evil, the way Qt advocates non-idiomatic C++ practices - I could go on for days, but shall digress.