cplusplusqt | Unsorted

Telegram-канал cplusplusqt - C++ & Qt

1220

Link: @CplusplusQt Embedded: @EMBCpp • Allowed Topics: C++ and everything related to Qt • Use only English • No Private Message without asking user's permission • No NSFW • No Spam • No unauthorized Bots • No Offtopic • No Self Promotions

Subscribe to a channel

C++ & Qt

Welcome to the group, @Santhosh252! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

Oh great, this works!!

Читать полностью…

C++ & Qt

Welcome to the group, -! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

For the record, setting height in the <img> HTML tag doesn't accomplish anything.

Читать полностью…

C++ & Qt

So solution (a) is the one I'm trying right now with specifying width and height, but I would rather (b) have the widget determine its height. Any insights how to achieve that?

Читать полностью…

C++ & Qt

Happy Holidays everyone! - Question regarding rendering HTML in a QTextBrowser, and determining the required height of the widget.

I render some HTML in a QTextBrowser that inlines some external images (<img src="..."/>). That works fine. My general goal is for the widget to resize itself to its required size, so I set setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents). However, this does not work - the widget shows a vertical scroll bar.

Читать полностью…

C++ & Qt

Welcome to the group, @Janek211508! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

Has anyone used ADS (advance docking system) here i am having problems in changing the style and themes ?

Читать полностью…

C++ & Qt

Welcome to the group, @cley_h2! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

Functor templates are not necessarily something to make your start in C++.

Читать полностью…

C++ & Qt

That’s more of a reference. Good for looking things up, but perhaps not as a textbook.

Читать полностью…

C++ & Qt

If you want a steep learning curve, read Stroustrup's book.

Читать полностью…

C++ & Qt

Do you have any c/c++ experience? Classic (pre c++11) books are quite heavy on pointers and iterators, which may scare some readers off.
You will still need to learn those things, but the learning curve is not as steep nowadays.

Читать полностью…

C++ & Qt

Bruce Eckel's book is good - his Java one is good too.. But I'm also going based on reading it 25ish years ago too...

There have been significant changes to the language since it was published (C++11 being the most significant) , so a newer one probably should be suggested - though the fundamentals would still apply - so you could probably get away with reading his book and supplementing with a book that goes into the changes added in C++11, C++14, C++17 and C++20.

Читать полностью…

C++ & Qt

I read Bruce Eckel's "Thinking in C++". It's free for d/l.

Читать полностью…

C++ & Qt

Welcome to the group, @Zenooone! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

@shimarongreywolf What if you turn the scroll bars off and set setFixedSize to document ().size().toSize() on documentSizeChanged?

Читать полностью…

C++ & Qt

No, this does not work. Thanks anyway. I'll post a solution if I find one.

Читать полностью…

C++ & Qt

Happy holidays!

ChatGPT proposes this (but I haven’t verified):

QTextBrowser *browser = new QTextBrowser(this);
browser->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
browser->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
browser->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);

// Important: constrain text width so height can be computed
browser->document()->setTextWidth(browser->viewport()->width());

// React when images change the document size
connect(browser->document()->documentLayout(),
&QAbstractTextDocumentLayout::documentSizeChanged,
browser,
[browser](const QSizeF &) {
browser->updateGeometry(); // notify layout system
});

Читать полностью…

C++ & Qt

My guess is that this is due to the image being inlined and no width/height being specified.

Читать полностью…

C++ & Qt

Welcome to the group, -! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

Welcome to the group, @hzjyyds! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

Shermen, Please press the button below within 5 Minutes to prove that you are not a bot.👇🏻

Читать полностью…

C++ & Qt

Hi all! Has anyone tried to deploy the qt/qml environment in manjaro for Android development? Can you share the installation steps? When sdkmanager --list produces the following: Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema

Читать полностью…

C++ & Qt

He did write a shorter overview of new c++ features a couple of years ago though

Читать полностью…

C++ & Qt

I tried this to learn C++. It was steep.

Читать полностью…

C++ & Qt

Welcome to the group, -! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

That's how I'd proceed today.

Читать полностью…

C++ & Qt

But that was, I dunno - 25 years ago or so. There's probably better ones out there.

Читать полностью…

C++ & Qt

You guys have some good books to begin with c++?

Читать полностью…
Subscribe to a channel