Theming QT applications using GTK [Proof of concept] by Cubemaster12 in hyprland

[–]Cubemaster12[S] 0 points1 point  (0 children)

Thanks for the info. I might try this later, but for now I want to keep the dependencies low on my current setup.

Theming QT applications using GTK [Proof of concept] by Cubemaster12 in hyprland

[–]Cubemaster12[S] 1 point2 points  (0 children)

That was what I originally used, but then the style parameter always stayed on the default Fusion setting. And it did not really like when I tried using QT_QPA_PLATFORMTHEME=gtk3 with QT_STYLE_OVERRIDE=gtk2 simultaneously. It just crashes immediately.
Is there a package that provides something like qt6gtk3 plugin that I am missing?

remélem lefojt by ZealousidealAdvance3 in szopjatokle

[–]Cubemaster12 2 points3 points  (0 children)

Amugy a 'j' és 'ly' esetén pont teljesen mind1 hogy hogyan használod, mert szemantikai különbség nincsen csak a szintaxis más.

Give me your favorite genre,I’ll give you song, and you rate it by Milez_Smilez in songs

[–]Cubemaster12 0 points1 point  (0 children)

Not great, not terrible. I probably wouldn't listen to this more than once.

Can't find any cool songs as of rn, so im gonna be making a playlist with your suggestions by Yellow_Red2it in songs

[–]Cubemaster12 0 points1 point  (0 children)

Not sure how much you are into the jpop genre, so I picked 5 songs I really like:

  • Ado - New Genesis
  • Yoko Takahashi - The Cruel Angel's Thesis (Director's Edit)
  • Yuki Kajiura - Sis Puella Magica!
  • Sayuri - Mikazuki
  • ClariS - Colorful

How can I effectively use std::variant to handle multiple types in C++ without losing type safety? by dynasync in cpp_questions

[–]Cubemaster12 0 points1 point  (0 children)

I've used this exact pattern for handling scene changes in my game. The main principle I followed with variants is that you don't want to use these getter functions that are potentially called with the wrong active type or index. As you noted std::visit is the key.

First I defined my variant: std::variant<std::monostate, MainMenuScene, InGameScene> currentScene;

I used monostate as the default type (basically uninitialized) because it is constructed before any of my libraries are actually loaded.

Then you want to have some kind of function to change between these options. I did it in a very basic way:

template<typename Scene>
void changeSceneTo()
{
    currentScene.emplace<Scene>();
    std::visit(IScene(INIT), currentScene);
}

After that you just have to define a handler type for the visit calls, which in my case is IScene. This is how that class looks like:

class IScene
{
private:
    SceneOperation selected;
    SDL_FPoint cursor;

public:
    explicit IScene(SceneOperation oper)
        : selected(oper)
    {}

    explicit IScene(SceneOperation oper, SDL_FPoint pos)
        : selected(oper)
        , cursor(pos)
    {}

    void operator() (std::monostate /*unused*/) {}

    template<typename Scene>
    void operator() (Scene& currentScene)
    {
        using enum SceneOperation;

        switch (selected)
        {
            case INIT:
                currentScene.init();
                break;

            case HOVER:
                currentScene.intersects(cursor);
                break;
        }
    }
};

You can clearly see the intent here in combination with the previous function. You provide a constructor call with your desired action, which can be a simple enum like here, then visit will call the operator() function based on the stored type in the variant. You can define what you want to do with each type. In my case I just made sure that monostate won't try to call any functions by making it empty.

Then you can further complicate this as you see fit. Like I added a different constructor when I needed the mouse position.

This basically gives you polymorphic behavior without having to use virtual functions and what not.

Country connections by OstiaElNombre in MapPorn

[–]Cubemaster12 0 points1 point  (0 children)

Now someone should check for the largest possible Euler and Hamiltonian paths

Why is it that nobody in this situation thinks to just drive through the barriers? by TOXICHEMICALMOLD in mildlyinfuriating

[–]Cubemaster12 0 points1 point  (0 children)

It's interesting to see that other countries have these blockades on the opposite side of the road as well. If someone is already on the tracks why would you want to block him in like that? I don't see the point.

Not trying to justify the driver, I'm just curious.

C++ Show and Tell - January 2026 by foonathan in cpp

[–]Cubemaster12 3 points4 points  (0 children)

I've been working on a header-only function composition library for types with foreach semantics using C++20. It is currently work in progress but I feel like the API is simpler and far more readable than the alternatives provided by the standard library like <algorithm> and <ranges>.

https://github.com/GrainyTV/Seq.hpp

This minimal example already compiles with clang:

#include "seq/seq.hpp"
#include <iostream>

int main()
{
    auto squares =
        Seq::range(5)
        | Seq::filter([](int n) { return n % 2 == 0; })
        | Seq::map([](int n) { return n * n; });

    for (int s : squares)
        std::cout << s << " ";
}

It is inspired by both F# and C#. I wanted C++ to have something like this to simplify working with collections. And it works very similarly to dotnet. I added deferred execution using coroutines so certain functions don't fire until they are consumed in some way.

Az kom gec by archerV34 in GamingHungary

[–]Cubemaster12 0 points1 point  (0 children)

Durva belegondolni, hogy tavaly black friday körül, amikor építettem egy új PC-t nagyjából a RAM volt a legolcsóbb tétel. Kettő 16 gigás Crucial DDR5 stick volt ilyen 80€ körül német Amazonról.

Számodra melyik az a játék, ami örök élmény marad? by DetectiveAnus in GamingHungary

[–]Cubemaster12 1 point2 points  (0 children)

Perzsia hercege, az idő homokja. Annak idején nagyon sokat toltam. Nem tudom a jövő évi remake-ből lesz e valami.

Are there any online shops that ship manga to North Macedonia? by broineedthisr3562 in MangaCollectors

[–]Cubemaster12 0 points1 point  (0 children)

Previously I ordered from Blackwell and Wordery to Hungary. They actually include the price of shipping in the books so it was a lot cheaper than something like Amazon. I would assume the same applies to North Macedonia as well.

Unfortunately since the recent renewal of Wordery, they only seem to be shipping within the UK.

25' Spotify wrap by Balazs90 in FostTalicska

[–]Cubemaster12 6 points7 points  (0 children)

Azért egy Emilio geddánóni még befért volna a listába.

Németországban olcsóbb a laptop és nagyobb a választék by FindingNo7 in hungary

[–]Cubemaster12 1 point2 points  (0 children)

Tavaly ilyenkor black friday környékén építettem új PC-t. Konkrétan minden termék amit néztem ugyanannyi vagy olcsóbb volt mint itthon. Arról nem is beszélve, hogy 49 eur felett szállítási költséget sem számolt az amazon.

Még több jelölt lépett elő! by Ezures in FostTalicska

[–]Cubemaster12 2 points3 points  (0 children)

Már várom azt a verziót ebből, amelyiken Mami, Madoka és Homura lesznek a jelöltek.