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
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. :)
There's usually a black background since images don't take up the whole screen especially when zoomed out
Читать полностью…I already have one that works a lot better than the current image viewer in the project I'm working on. Next thing to improve is to limit the panning to just the image boundaries instead of being to able to pan to black background 😄
Читать полностью…My bad. It worker.get()
at the moment of calling was already nullptr
You’ve seen this (I suppose)?
https://learn.microsoft.com/en-us/dotnet/core/native-interop/expose-components-to-com
Any error message(s)?
A crash can happen in many situations. A common situation is to use an object out of its scope.
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. :)
It seems you should add this line to your cpp file:
extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
This seems related: https://github.com/ocornut/imgui/issues/8255
Читать полностью…Perhaps you need to include same header? Or is there a spelling error?
Читать полностью…Welcome to the group, @ShehabGuii! :-)
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. :)
I actually thought of that since I wasn't able to find one easily. It's already open source since I contribute it to an open source project but I'll probably make a separate one just for the viewer itself 😄
Читать полностью…In any case, I found a code that was semi working but the core thing was good so I just used that and improved it 😄
Читать полностью…property int zoom: 100
Image {
width: sourceSize.width * zoom / 100
height: sourceSize.height * zoom / 100
}
playing with zoom value you can change final image size
It’s not clear for me what do you mean about black background.
There is an image with some size: width and height. There is an Item/Rectangle that represents your app area for the viewer. Image could be smaller or bigger than viewer area depending on zoom
I have developed it with qml in not open source project. Can help with challenges
Читать полностью…If I try to QMetaObject::invokeMethod(worker.get(), &MyClass::init, Qt::QueuedConnection);
, actual init never happens, and result of invoke is false
I have a question. I have moved object to another thread(basically 1-to-1 as in qt's example). After the move has happened, I need to call init
function for my object. But this function must be performed on second thread. Is there better way to do so, rather than create separate signal for that? Because signal for this case seems overkill
In fact I can't invoke a PE.NET in memory with COM calls. I made a LoadTypeLib to retrieve the precise GUIDs from mscore.lib and at the end Invoke_3 return 0x0 and the process crash
Читать полностью…Hello everyone, I am facing a technical problem on a C++ and .NET project. I am looking for someone who has advanced knowledge in CLR and calls native COM please. I would be grateful, thank you.
Читать полностью…I am getting this error
Please someone help
VS suggests to add
"imgui_impl_win32.cpp"
Which i believe is an anti practice to add cpp files
heya :) if someone has an idea of a fix for this... https://bugreports.qt.io/browse/QTBUG-138093
Читать полностью…I actually tried AI and it was useless. I don't use it much so maybe I'm not good with prompts yet 😅
Читать полностью…