Results 1 to 14 of 14

Thread: Bugs, style changes in 4.1.0?

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

    Default Bugs, style changes in 4.1.0?

    I have recently installed 4.1.0 (giving me now 3.3, 4.0.1 and 4.1.0) on my computer. I have noticed a few unpleasant changes between 4.0.1 and 4.1.0.

    I have attached a small example that shows some of these changes:

    - closing a dockwindow does not uncheck the checkbutton in the dockwindow popup menu. Only by unchecking it, and rechecking it will the dockwindow be shown again.

    - the default style (colours, buttons - with the new buttons being badly defined, etc) has completely changed. Changing the style to windowxp or some other style doesn't make much difference. I have attached a couple of pics showing the difference between compiling with 4.0.1 and 4.1.0.

    - I also get an "BadWindow" X error when closing the dialog with 4.1.0, which doesn't occur when using 4.0.1.

    I was wondering if anyone else could compile the example and see if they find the same problems/differences?

    Thanks.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Join Date
    Feb 2006
    Location
    Kirovohrad, Ukraine
    Posts
    72
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation Re: Bugs, style changes in 4.1.0?

    Quote Originally Posted by simk
    - closing a dockwindow does not uncheck the checkbutton in the dockwindow popup menu. Only by unchecking it, and rechecking it will the dockwindow be shown again.
    Please see
    QT bug#91825

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

    Default Re: Bugs, style changes in 4.1.0?

    Okay, thanks for that - I did actually search on the Task Tracker first, but couldn't find any reference to it. I just didn't search properly, obviously.

    What about the other issues?

  4. #4
    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
    - the default style (colours, buttons - with the new buttons being badly defined, etc) has completely changed. Changing the style to windowxp or some other style doesn't make much difference. I have attached a couple of pics showing the difference between compiling with 4.0.1 and 4.1.0.
    Which platform is this? The Windows XP style is not available on Linux. Changing the syle should make a difference - precisely by changing the style...

    Quote Originally Posted by simk
    - I also get an "BadWindow" X error when closing the dialog with 4.1.0, which doesn't occur when using 4.0.1.
    That could a problem in your program, have you tried debugging it? See for example:
    About X Protocol Errors

  5. #5
    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
    Which platform is this? The Windows XP style is not available on Linux. Changing the syle should make a difference - precisely by changing the style...
    I am, of course, using Linux, so you are right, the XP style isn't available. The Windows style is, however. And as I said, it doesn't make much of a difference. Obviously the style changes, but the colours/buttons etc are still different from the 4.0.1 compiled program. I would like to know why, and whether other people find the same or if it is only my computer, and therefore something to do with my installation.

    Quote Originally Posted by dimitri
    That could a problem in your program, have you tried debugging it? See for example:
    About X Protocol Errors
    There may be a problem with the program (I don't see how, it is very simple program), 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.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Bugs, style changes in 4.1.0?

    Quote Originally Posted by simk
    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").
    So which is the "default" one for you?

  7. #7
    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 wysota
    So which is the "default" one for you?
    Motif - for both versions of the program, which I believe is the default on Unix systems.

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Bugs, style changes in 4.1.0?

    So the bottom line is that when you use Motif, some custom colours are not displayed and the issue is not present with other styles, like Plastique or Windows. Right?

  9. #9
    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.

  10. #10
    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 

  11. #11
    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 wysota
    So the bottom line is that when you use Motif, some custom colours are not displayed and the issue is not present with other styles, like Plastique or Windows. Right?
    Actually, no. If I use any style other than Plastique, the buttons/colours etc are completely different from the original (and even Plastique is worse in the 4.1.0 example). But the effect is most obvious with Motif, with the result being a completely unusable style, as you can see from the pictures I posted originally.

  12. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Bugs, style changes in 4.1.0?

    Here are screenshots from my system. I don't quite understand your colour problems, but maybe they'll help you in some way (they are all Qt4.1)...
    Attached Images Attached Images

  13. #13
    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 wysota
    Here are screenshots from my system. I don't quite understand your colour problems, but maybe they'll help you in some way (they are all Qt4.1)...
    Thanks for that. It looks as though the colour problem is with my installation only - could be the same with the "BadWindow" error as well.

    I think the simplest solution is just to keep using 4.0.1 (on my much, much larger program, I have also had memory problems using 4.1). Thanks for your help.

  14. #14
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Bugs, style changes in 4.1.0?

    Quote Originally Posted by simk
    Thanks for that. It looks as though the colour problem is with my installation only - could be the same with the "BadWindow" error as well.
    No, I get that BadWindow error too.

Similar Threads

  1. Mac Style for Qt Application---help needed
    By swamyonline in forum Qt Programming
    Replies: 3
    Last Post: 15th June 2008, 22:49
  2. Qt 4.3.0 lots of Bugs!
    By VireX in forum Qt Programming
    Replies: 69
    Last Post: 20th June 2007, 23: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.