Questions tagged [qt-mfc-migration]

18 questions
5
votes
1 answer

Link Error with Qt Win Migration Framework: unresolved symbol QWinWidget::staticMetaObject

I'm trying to set up the Qt Win Migration framework to use Qt in an existing MFC based application. I want to use the framework as a library, so I ran qmake on the qtwinmigrate/buildlib/buildlib.pro file to create a Visual Studio vcxproj project…
Bret Kuhns
  • 4,034
  • 5
  • 31
  • 43
4
votes
4 answers

QWinWidget Inside MFC Dialog Not Repainting or Responding to Tab/Arrow keys

I am using a QWinWidget inside of an MFC dialog and the QWinWidget is not drawing itself correctly and it is not handling keyboard input correctly. Repainting [Unsolved] Within the QWinWidget, I have a QTableWidget. When I scroll the QTableWidget,…
Andrew Garrison
  • 6,977
  • 11
  • 50
  • 77
3
votes
1 answer

Can I draw Qt objects directly to Win32 DC (Device Context)?

I can draw Qt objects to an QImage and then draw the image to HDC or CDC. This may hurt our application's performance. It would be great if I can draw Qt objects directly to Win32 HDC or MFC CDC. I expect that there is a class, say QWin32Image for…
Kevin C.
  • 271
  • 3
  • 8
2
votes
2 answers

Qt/MFC Migration Framework tool: properly exiting DLL?

I'm using the Qt/MFC Migration Framework tool following this example: http://doc.qt.nokia.com/solutions/4/qtwinmigrate/winmigrate-qt-dll-example.html The dll I build is loaded by a 3rd party MFC-based application. The 3rd party app basically calls…
User
  • 62,498
  • 72
  • 186
  • 247
2
votes
1 answer

Send a Notification Background Firebase android

the run: send https://fcm.googleapis.com/fcm/send { "to" : "xxxxxxxxxxxxxxxxxxxxxxxxx", "priority" : "normal", "time_to_live" : 3, "notification" : { "body" : " test mensaje", "color":"#FF2301", "icon" :…
2
votes
0 answers

How to print QGraphicsTextItem in MFC application

I have used QGraphicsTextItem in my MFC applications for text editing, then converted the results to a bitmap to show in the view (screen). But it has issues when printing. For example, if I print to a PDF file, the text is not scalable since it is…
Kevin C.
  • 271
  • 3
  • 8
2
votes
1 answer

MFC Control in a Qt Tab Widget

I'm working on a project that is using the Qt/MFC Migration Framework and I'm trying to reuse some existing MFC controls inside of a Qt dialog. Does anyone know if it is possible to insert an MFC control (CDialog or CWnd) inside of a QTabWidget.…
Andrew Garrison
  • 6,977
  • 11
  • 50
  • 77
1
vote
1 answer

Does wxWidgets have something comparable to Qt's MFC Migration framework?

I want to build a DLL plugin for a 3rd party MFC-based application. The "official" way to do this is to build the plugin using MFC as well. I'm looking to see if it's possible to use any other gui toolkits to ease my development. I've played…
User
  • 62,498
  • 72
  • 186
  • 247
1
vote
1 answer

Can't display modal QProgressDialog in MFC application

I'm having problems displaying a modal Qt dialog while starting up a Qt application from an MFC application. Specifically, a QProgressDialog instance won't display within the MFC application when I set its parent to a QWinWidget instance. Here's my…
Robin
  • 695
  • 2
  • 8
  • 23
1
vote
2 answers

QWinWidget's position is always 0 (zero)

I hosted a QWinWidget in a CView and want it to stay at a designated position when resizing. But QWinWidget always moves to (0, 0), i.e. left-top corner of the CView. I tried to debug in this way: QWinWidget* pWidget = new…
Kevin C.
  • 271
  • 3
  • 8
1
vote
0 answers

Resizing Mfc dialog with embeded QWinWidget

I asked my question on qt centre forum, but no answer yet. Hope someone will know something about this. I have an Mfc dialog with QWinWidget inside it. When I resize my dialog I want my QWinWidget to automatically be resized and repositioned as…
user152508
  • 3,053
  • 8
  • 38
  • 58
0
votes
2 answers

QWidget is not updating when using show instead of exec

In my project, I need to create a non-blocking QWizard on the top of my Mfc application. To do this, I followed the instruction here (link) Doing this have a strange side-effect, it looks like that my UI is not updating properly when I am clicking…
peterphonic
  • 951
  • 1
  • 19
  • 38
0
votes
1 answer

Using Mfc with Qt modal dialog and main process

I have an Mfc application where I want to open a Qt modal window, while the Mfc application is still running behind. To start a Qt application from an Mfc, I got the how to there. This page creates a Dll but my solution creates a static library…
peterphonic
  • 951
  • 1
  • 19
  • 38
0
votes
1 answer

DllMain and Qt Mfc Migration

I am using the Mfc to Qt migration solution, to migrate my Mfc plugin to Qt. My Mfc plugin is loaded in third party Mfc app. Basically I am using the following example Qt based Application Extension : BOOL WINAPI DllMain( HINSTANCE hInstance, DWORD…
user152508
  • 3,053
  • 8
  • 38
  • 58
0
votes
1 answer

Deleting QWinWidget

I am using mfc to Qt migration and I am showing Qt dialogs in my Mfc app. Is it Ok to deleteLater QWinWidget in its winEvent handler? The thing is that I want all of my open Qt dialogs in My Mfc application to be automatically deleted when the main…
user152508
  • 3,053
  • 8
  • 38
  • 58
1
2