"Helvetica" 20
This is the result.
Maverick
"Helvetica" 20
This is the result.
Maverick
wysotaQt allows you to use everything you want
--------------------------------------------------------------------------------
#if defined(Q_OS_UNIX) && defined(QT_DEBUG)
abort(); // trap; generates core dump
#else
exit(1); // goodbye cruel world
#endif
This is what was expected right ?
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
This works, right?
Qt Code:
// main.cpp #include <QtGui> int main(int argc, char *argv[]) { QGraphicsView view; view.show(); return a.exec(); }To copy to clipboard, switch view to plain text mode
J-P Nurmi
Yes it works . Not working in "my" view though.
Maverick
wysotaQt allows you to use everything you want
--------------------------------------------------------------------------------
#if defined(Q_OS_UNIX) && defined(QT_DEBUG)
abort(); // trap; generates core dump
#else
exit(1); // goodbye cruel world
#endif
Then, are you by any chance adjusting the font of the label anywhere else? And which other widgets do you set a font explicitly?
J-P Nurmi
maverick_pol (16th August 2007)
I've tried changing the font size in the other "part" of the program and it works fine.
Give me 10 minutes and I will find the stupid mistake of mine.
All in all thank you for help.
Maverick
It looks like ... when I try to set the font outside the constructor it works fine. While my function setting the font is placed inside the constructor there is no "change in display" even though the qDebug says it has changed.
Last edited by maverick_pol; 16th August 2007 at 13:59.
wysotaQt allows you to use everything you want
--------------------------------------------------------------------------------
#if defined(Q_OS_UNIX) && defined(QT_DEBUG)
abort(); // trap; generates core dump
#else
exit(1); // goodbye cruel world
#endif
Are you by any chance using static or global instances of QFont ?
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
I am using an (auto) local font object.
Maverick
wysotaQt allows you to use everything you want
--------------------------------------------------------------------------------
#if defined(Q_OS_UNIX) && defined(QT_DEBUG)
abort(); // trap; generates core dump
#else
exit(1); // goodbye cruel world
#endif
Bookmarks