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

There's a lot of esoteric parts of the language.

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

C++ & Qt

I don’t know someone who masters C++ fully.

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

C++ & Qt

I am currently learning C++ and more stuffs about computers (their architecture, chips, memory,..... Etc). I am already a PHP developer so that learning C++ syntax for me was an easy job!
-What am I doing right now?
I am still learning the language and I want to master it till I achieve my goals. 😁

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

C++ & Qt

Welcome to the group, @zethcxx! :-)

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

and hey that works just fine. thanks for the help! :)

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

C++ & Qt

The easiest solution is perhaps to close everything in a controlled manner. Disconnect everything yourself at exit.

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

C++ & Qt

Parents to windows can be a bit tricky I think, but perhaps the model and the proxy can have the same parent?

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

C++ & Qt

oh, the window that owns the QSortFilterProxyModel doesn't have a parent

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

C++ & Qt

not at my computer right now, but maybe setModel changes the parentage?

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

C++ & Qt

i have subclassed QApplication, and that subclass has a *QStandardItemModel field which is initialized in the constructor, updated in one window, and accessed by a QSortFilterProxyModel in another window. both of the windows use instance() on the QApplication to access the field. this gives me 2 "QBasicTimer::start: QBasicTimer can only be used with threads started with QThread" warnings when closing the program. if i just remove the call to setModel on the QSortFilterProxyModel, then i get no warnings. what's going on?

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

C++ & Qt

Hi everyone! I made an app that creates Qt Creator shortcuts on macOS. Which allows you to run multiple separated data instances of Qt Creator. That makes it easy to work on separate environments and plugins at the same time. It is available in the Mac App Store, and if anyone needs a promo code, let me know

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

C++ & Qt

but correct if i'm wrong plz, it's educational channel

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

C++ & Qt

you can derive from trylly garbage collecled classes, not delayed in-build mechanic that they use

i think you just write in style that surrounds you, that's all. this lib is full so this is it

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

C++ & Qt

depends I think on what you need. so... ♂ check the docs ♂ and task at hand, sometimes you do as you like

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

C++ & Qt

I've seen too many memory leaks, where somebody expected that qt will clean memory up.

That is why I don't like the fact, they do not provide raii pointers, that are aware of qt's parent-child relationship

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

C++ & Qt

No, it’s a very complex language. I don’t think there are many (if any) that knows every detail.

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

C++ & Qt

I guess define your own pet project and implement it in C++.

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

C++ & Qt

Please thumb up this reddit post https://www.reddit.com/r/QtFramework/comments/1ost284

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

C++ & Qt

Perhaps that window is destroyed first?

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

C++ & Qt

well i don't know why exactly, but removing the QStandardItemModel's parentage to the QApplication did the trick. i guess i'll set its parent to the window that modifies it

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

C++ & Qt

maybe i could make the proxy's parent the original model 🤔

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

C++ & Qt

but i can't set a parent for it cause i initialize it in the constructor of the QApplication and it's the first window that opens

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

C++ & Qt

I don’t think so, but the if you connect them you should make sure the source model isn’t destroyed before the proxy. Or set the source to nullptr when exiting.

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

C++ & Qt

I think this can happen if things are destructed in the wrong order. Do you have parents to all objects? Perhaps you can disconnect things yourself before they are destructed?

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

C++ & Qt

I'm working on customising Scribus for a particular workflow for a newspaper. Work is mainly in QT. My background is python. Trying to find someone who has done similar work before

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

C++ & Qt

in general, I can give you a personal advice, (I'm maybe junior-middle in c++, i'm reverser in my field)

- try to not exceed 1000-2000 lines of code per function
- dont overthink it. you have task to do. just do it and verify — then NAME it right
so you have a subroutine with some functional that you can call and know what it does, implementation does not matter, be crazy)

and once you follow this and apply general app-architecture knowledge(or follow examples or just do whatever you feel is right) — you will notice that your code structure is not that bad... and objects with functions and files are not that bad... and your code flow graph from top to bottom(or whatever input point) is not that bad...

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

C++ & Qt

the only exception is some crazy threads usage in app that except in except(after) ) so you should prefer only shared_ptr

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

C++ & Qt

and don't try to make js of c++. they're sepparate as for good)

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

C++ & Qt

there is qsharedptr or you can use std::shared_ptr(preffered to use stl) but new as CreateObject -> Delete object they tend to like more. just an observation

in most cases if your code flow is in right direction, and you pass pointer... it's fine (and if it's hard... then you project is either too large or you are doint it wrong)

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

C++ & Qt

oh, btw, you HAVE to check some doxygens output, eg for llvm opt, chromium, etc

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