Results 1 to 14 of 14

Thread: Bugs, style changes in 4.1.0?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    109
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Bugs, style changes in 4.1.0?

    Quote Originally Posted by simk
    There may be a problem with the program (I don't see how, it is very simple program),
    Please post a minimal, compilable example.
    Quote Originally Posted by simk
    but that doesn't explain why I only receive the error with the 4.1.0 compiled program. I have also found that it doesn't occur when I give a different style on the command line (e.g. "-style=plastique" or "-style=windows"). I'm not exactly sure how to debug to find a "BadWindow" error, as it doesn't dump a core, or send a segmentation fault or anything.
    It could be something with Qt 4.1. Or it could be something with your program resulting in undefined behavior. It's hard to tell without some compilable, minimal example that reproduces the problem.

  2. #2
    Join Date
    Feb 2006
    Posts
    11
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Bugs, style changes in 4.1.0?

    Quote Originally Posted by dimitri
    Please post a minimal, compilable example.
    I attached a small example to my original post. Here is the code again:
    Qt Code:
    1. #include <QtGui>
    2. #include <QMainWindow>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication app(argc, argv);
    7.  
    8. QMainWindow *mainWin = new QMainWindow;
    9.  
    10. mainWin->setMinimumSize(400, 400);
    11.  
    12. // Dock Windows
    13. QDockWidget *dock = new QDockWidget("Test DockWindow 1", mainWin);
    14. mainWin->addDockWidget(Qt::RightDockWidgetArea, dock);
    15. dock->setMinimumSize(100, 10);
    16.  
    17. dock = new QDockWidget("Test DockWindow 2", mainWin);
    18. mainWin->addDockWidget(Qt::BottomDockWidgetArea, dock);
    19. dock->setMinimumSize(10, 100);
    20.  
    21. // Central widget
    22. QFrame *frame = new QFrame(mainWin);
    23. mainWin->setCentralWidget(frame);
    24. QHBoxLayout *box = new QHBoxLayout(frame);
    25.  
    26. // two simple push buttons
    27. QPushButton *pb = new QPushButton("Push Me!", frame);
    28. box->addWidget(pb);
    29. pb = new QPushButton("Me too!", frame);
    30. box->addWidget(pb);
    31.  
    32. mainWin->show();
    33. return app.exec();
    34. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Mac Style for Qt Application---help needed
    By swamyonline in forum Qt Programming
    Replies: 3
    Last Post: 15th June 2008, 21:49
  2. Qt 4.3.0 lots of Bugs!
    By VireX in forum Qt Programming
    Replies: 69
    Last Post: 20th June 2007, 22:05

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.