Thank you for your response.
The relevant code is attached. Attachment 5330
This program stores and retrieves the text in an "OA" database, which is not mine to share. A text object in this database has the same attributes as a text you draw with QPainter (origin, orientation, alignment, bounding box, etc.).
vview.jpg shows you the dialog that is created. QPainter is drawing correctly. As I said above, the problem is that I can only get it to redraw by resizing the window
I could only attach five files, so here is the interesting part of main.cpp:
#include <QApplication>
#include "window.h"
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(basicdrawing);
Window window;
window.show();
return app.exec();
}
#include <QApplication>
#include "window.h"
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(basicdrawing);
QApplication app(argc, argv);
Window window;
window.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks