Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt support #52

Open
Shatur opened this issue Dec 5, 2020 · 3 comments
Open

Qt support #52

Shatur opened this issue Dec 5, 2020 · 3 comments

Comments

@Shatur
Copy link

Shatur commented Dec 5, 2020

Hi! Is it possible to use the library with Qt's qInfo(), qDebug() and qCritical()? They have similar to iostream syntax.

@Shatur
Copy link
Author

Shatur commented Dec 5, 2020

Ah, I figured out that the library is built directly using std::ostream :(

@Shatur Shatur closed this as completed Dec 5, 2020
@ikalnytskyi
Copy link
Owner

It should be possible to support Qt streams too. I'm not sure to what extend though, since I don't know whether Qt streams allow to store format flags or not (something we need for colorize and nocolorize manipulators).

Since Qt is quite a widespread framework, I think it makes sense to support it. I'll reopen this ticket.

@Shatur
Copy link
Author

Shatur commented Dec 11, 2020

I think that the above macros cannot be supported, but QTextStream probably can be. It can write directly to stdout and stderr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants