Results 1 to 3 of 3

Thread: QWizard with graphic error

  1. #1

    Default QWizard with graphic error

    Hello!

    I used the QWizard and I get the following graphic error:

    Graphic_Error_QWizard.jpg

    I use a QMainWindow and a QMdiArea in my application. The QWizard is a QSubWindow of the QMdiArea.
    (The white rectangle is to protect application data)

    Has anyone an idea how to find the reason for that issue?

    Greetings,
    Markus

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: QWizard with graphic error

    So you embed the QWizard into a QMdiSubWindow?
    Using reparent() on the wizard?

    Alternatively, since you don't want a dialog, maybe use QStackedWidget instead?

    Cheers,
    _

  3. #3

    Default Re: QWizard with graphic error

    Not really, I emded the QWizard as a Widget, so the QMdiArea will create the QMdiSubwindow.

    CMyWizard *wiz = new CMyWizard();
    wiz->setAttribute(Qt::WA_DeleteOnClose);

    QMdiSubWindow *sub = m_MDI->addSubWindow( wiz );
    sub->setGeometry( 100,50, 720,600 );

    wiz->setParent( sub );

    dlg->show();


    [Edit]
    I added "wiz->setParent( sub );", but that makes no different.


    Added after 35 minutes:


    I think the problem is that you can't use a QWizard as a SubWindow in a QMdiArea. As a QDialog in the QMainWindow the style of the Wizard changes and the graphics are correct. So I'm going to change the workflow of the application.
    Last edited by MadMax411; 17th December 2013 at 14:55.

Similar Threads

  1. Drawing a graphic?
    By ImNoob in forum Newbie
    Replies: 12
    Last Post: 6th December 2013, 15:19
  2. Vector graphic to QPainterPath
    By alitoh in forum Qt Programming
    Replies: 2
    Last Post: 15th August 2012, 15:32
  3. Graphic by Qwt in a QGraphicsView
    By ChoCChoK in forum Qwt
    Replies: 3
    Last Post: 16th March 2011, 23:00
  4. Tricky graphic effect
    By insideru in forum Qt Programming
    Replies: 2
    Last Post: 13th August 2010, 03:11
  5. Graphic evaluation
    By jd in forum Qt Programming
    Replies: 3
    Last Post: 7th February 2008, 15:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.