News for hackers. Stuff that matters.
Re:GitQlient – a multi-platform GUI-oriented Git client writ... by W0lf on Monday April 27, 2020 @10:24AM (#22996084)
Is anyone aware of a publicly available code base to look into when searching for high quality Qt-based (desktop) applications? Think chromium-quality software quality code base. I am looking for inspiring patterns and also things such as naming schemes as I regularly change my mind when it comes to developing Qt based applications with regard to:

  - naming things (e.g. should signals/slots be prefixed (sigFoo() -> onFooBared())
  - how to deal with signal functions actually not implemented (clang-tidy warnings)
  - how to break up large main window classes in a reasonable manner
and so on. Typically I immerse myself in one of the larger code bases I'm aware of (Android, Firefox, Chromium, Tensorflow, and some others) and regularly discover pretty useful patterns I can make use of. However, I was unlucky to find something for Qt based.
Re:GitQlient – a multi-platform GUI-oriented Git client writ... by zwieback on Monday April 27, 2020 @10:32AM (#22996155)
You could look at KDE, I don't know about the quality but it's a big enough public effort that it should be well reviewed. https://en.wikipedia.org/wiki/KDE_Projects
Re:GitQlient – a multi-platform GUI-oriented Git client writ... by wheels on Monday April 27, 2020 @06:55PM (#23001122)
> Think chromium-quality software quality [...]

There's an irony somewhere in there that Chromium is a descendant of KHTML, KDE's rendering engine, which became WebKit and was originally written using Qt. And Google and Apple's contributions were regularly derided for being relatively low quality.

Qt and KDE have always had a lot of cross-contribution, so KDE (its libraries, for example) is a good place to start:

https://github.com/KDE/kdelibs

There's also this old, but still relevant, article on designing Qt-style APIs (which had a big impact on me personally):

https://doc.qt.io/archives/qq/qq13-apis.html

Re:GitQlient – a multi-platform GUI-oriented Git client writ... by hoistbypetard on Monday April 27, 2020 @10:32AM (#22996158)
The KDE applications would seem like a good place to start.

https://kde.org/applications/office

Re:GitQlient – a multi-platform GUI-oriented Git client writ... by ynezz on Monday April 27, 2020 @10:35AM (#22996183)
Qt itself, like for example https://github.com/qt/qttools?
Re:GitQlient – a multi-platform GUI-oriented Git client writ... by MaxBarraclough on Monday April 27, 2020 @10:43AM (#22996278)
Good suggestion. Code snippets showing the naming style they use:

    connect(contextShortcut, SIGNAL(activated()), this, SLOT(showContextDock()));

    connect(m_messageView->selectionModel(),
        SIGNAL(currentColumnChanged(QModelIndex,QModelIndex)),
        SLOT(updateLatestModel(QModelIndex)));
Taken from https://github.com/qt/qttools/blob/7ec161d6f/src/linguist/li...
Re:GitQlient – a multi-platform GUI-oriented Git client writ... by nextweek2 on Monday April 27, 2020 @01:52PM (#22998140)
qBittorret has always been a bit cutting edge with Qt feature usage, which can be interesting.

https://github.com/qbittorrent/qBittorrent

not able to comment on code quality.

Re:GitQlient – a multi-platform GUI-oriented Git client writ... by ar-jan on Monday April 27, 2020 @12:24PM (#22997291)
QGIS could be interesting. It contains tons of functionality, and interfaces with multiple other geospatial projects.
Re:GitQlient – a multi-platform GUI-oriented Git client writ... by heeen on Monday April 27, 2020 @10:50AM (#22996358)
QtCreator maybe?
Re:GitQlient – a multi-platform GUI-oriented Git client writ... by jcelerier on Monday April 27, 2020 @10:56AM (#22996410)
seconded, I used the general design ideas of QtCreator as a baseline for my own stuff and it's been great
Re:GitQlient – a multi-platform GUI-oriented Git client writ... by cpach on Monday April 27, 2020 @01:10PM (#22997719)
Virtualbox maybe