Pdf viewer for MinGW Qt6 - c++

Well, it's been two days that i'm searching a way to view pdf in my application, it says i have to use QtWebengine but it's not supported by mingw compiler, is there another way to build a pdf viewer without using QtWebengine? (btw i'm working on Qt6)
Thank you

Related

Can't get QT to work in Visual Studio 2019 and what is the best place to learn QT?

So I do know C++ fairly well, I have used it and C for the past year in college. I'm trying to make an application with a GUI that needs a simple input box and easily customizable windows. The main focus of the project however is a lot of backend processing, I just need a GUI for the user. Is there a place where I can just learn the quick basics of QT? Also for some reason I can't get QT to work on Visual Studio 2019.
I get this error:
When I go to input the version, it doesn't actually save when I click OK.
In Manutention Tool you should download these Qt components marked as MSVC or UWP:
A MinGW build of Qt will probably work only with CLion and Qt Creator
And don't download the latest Qt, because VS doesn't work well with them.

Using Windows Visual Themes with Code::Blocks?

this is my first post on this website,
Anyway, I recently started trying to make a win32 app, and its been going well so far. Then I wanted to add aero to my app (as in not just the borders). So I looked it up online and one tutorial said I have to include dwmapi.h. This is in the Windows SDK. I don't know how to add this to Code::Blocks. By the way, I am using MinGW as my compiler. Also I tried using the MSVC 10 (VS2010) compiler in Code::Blocks, but I got a bunch of errors when I tried to use it, relating to the compilers/linkers not being found.
Any help would be great.
Unless you want to do custom drawing of controls and theme interfaces, all you need to do to support the visual themes is to add the appropriate manifest.
If you want to extend Aero Glass into your client area, look at DwmExtendFrameIntoClientArea () and family.
There are various articles and tutorials online about how to use it. I don't know specifics of using it with Code::Blocks though.
Never Mind, I figured it out. I updated to the nightly build of Code::Blocks and it had an easy preset to help me set up the SDK.

Creating GUIs for application

This is a question I've been wondering about for a long time.
How do you create an Interface for your program ?
It seems to much of a pain to position form controls and buttons using just code.
I'm looking for something similar to Visual Basic where you can drag and drop controls onto the window. But, I want to do this for applications written in C++.
Can It be done with compilers like MinGW on Eclipse ?
If you don't want to go the Qt route you can use ResEdit which is freeware. It will produce Win32 friendly .rc files that can be built with the MinGW resource compiler and used in Win32 applications.
There are some C++ Win32 wrapper libraries available though I'm not aware of any that are nearly as mature as Qt. I believe WinxGui is a port of WTL (or at least claims to be compatible with WTL) for GCC. It doesn't look like there has been much activity on the project site for a few years however.
What you're searching for is called Qt, both Eclipse and MinGW friendly.
Check out this nice article.
Qt toolkit is written in C++. So you can use it to develop GUI. It also comes with Qt Designer and Qt Creator IDE and tools.
Qt Reference Documentation
Qt Designer Manual
Qt Creator IDE and tools
And you can use MinGW to compile the code. You don't need to download MInGW separately. When installing Qt toolkik, it asks if you want to download MInGW also, just say yes to it. It will then download the correct version of MInGW itself.
The 1.7 GB download you look at is probably the full Qt SDK. This is not just Qt and documentation, but also includes the Qt Creator IDE with the Qt Designer "Form builder", the MinGW compiler, debugger, examples, demos, and some other stuff. There's also an "online installer" that allows you to select the packages you want before downloading everything. That's probably what I'd use if I were starting from scratch on Windows.

How to integrate webkit into a C++ Windows application

I've downloaded a nightly build of webkit which includes a dll, pdb. There are no header files and I can't find documentation on the API and usage of the dll.
I'm looking for example code to integrate this into a C++ application, and how to start requests, render them to window or ideally a Direct X texture.
So far my searching is coming up short on the webkit website and the internet at large.
You might want to check out the Chromium Embedded Framework available here: http://code.google.com/p/chromiumembedded/
I've used it extensively and found it to be functional, stable, and easy to use. It is smaller than QWebKit and has a more liberal license.
Why dont you use QWebKit from Qt? see this

C++ / XCode - How to generate pdfs?

I need to generate a pdf from a c++ application. I am using Xcode and I would like to stick to that. Possibly the solution needs to be opensource. I already tried a few, but ecountered issues:
I tried podofo but I had some issues when building it - it seems that does not work on OS X.
I wanted to use ClibPDF, but that is no more available for download.
When including PDFlib oder PDFlib Lite in my projects that does not work either, I get some strange memory errors on runtime.
Has anyone an idea what could be used with C++/XCode for pdfs? Thanks in advance!
To create a podfo Xcode project use the following in Terminal:
cmake -G "Xcode" -DWANT_FONTCONFIG:BOOL=YES -DCMAKE_INSTALL_PREFIX=/opt/podofo -DCMAKE_INCLUDE_PATH=/opt/local/include -DCMAKE_LIBRARY_PATH=/opt/local/lib ../podofoSrcDir
The Mac OS X drawing library, Quartz, supports PDF natively.