Results 1 to 4 of 4

Thread: Recent changes in QT 4?

  1. #1
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    300
    Thanks
    9
    Thanked 29 Times in 29 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Recent changes in QT 4?

    Hi, I've recently upgraded QT 4 (automatically, Gentoo emerge). And I've noticed a few changes / bugs that seem to have cropped up.

    • QAction::activated() changed to QAction::triggered(). That broke quite a lot of my code. And I couldn't find it in the change log. Maybe I checked the wrong one?
    • The bottom right corner size-grip of the file-dialog (and probably the other dialogs too) starts out mirrored, and you also resize mirrored-like if you grab it. It fixes itself after you resize the window a bit by grabbing the border.
    • A little docking-window I made with QT designer can't be moved by dragging its title bar anymore. It's always docked and should only be able to switch between the top and bottom dock-area. It worked fine before the upgrade.


    What do you make of this?
    "The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry

  2. #2
    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: Recent changes in QT 4?

    Quote Originally Posted by Michiel View Post
    QAction::activated() changed to QAction::triggered(). That broke quite a lot of my code. And I couldn't find it in the change log. Maybe I checked the wrong one?
    QAction::triggered() was present since Qt 4.0 and using activated() resulted in a warning being displayed during compilation or runtime (don't remember right now).

    The bottom right corner size-grip of the file-dialog (and probably the other dialogs too) starts out mirrored, and you also resize mirrored-like if you grab it. It fixes itself after you resize the window a bit by grabbing the border.
    I don't quite understand what you mean, but it seems like a faulty behaviour. But it might be caused by your windowing system and not Qt. Which version of Qt is it exactly? Maybe it is caused by some patch applied by Gentoo?

    A little docking-window I made with QT designer can't be moved by dragging its title bar anymore. It's always docked and should only be able to switch between the top and bottom dock-area. It worked fine before the upgrade.
    Hard to say, I have the most recent stable version of Qt and dock windows work fine. It is true that there has been some problem with dock windows in some earlier releases.

    In general please check which Qt version you have (you can do it by calling qmake -v).

  3. #3
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    300
    Thanks
    9
    Thanked 29 Times in 29 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Recent changes in QT 4?

    Quote Originally Posted by wysota View Post
    QAction::triggered() was present since Qt 4.0 and using activated() resulted in a warning being displayed during compilation or runtime (don't remember right now).
    It results in a warning at runtime. And it results in my toolbuttons not working anymore. Doesn't matter that much, though. It was easy enough to fix once I found out what the problem was.

    Quote Originally Posted by wysota View Post
    I don't quite understand what you mean, but it seems like a faulty behaviour. But it might be caused by your windowing system and not Qt. Which version of Qt is it exactly? Maybe it is caused by some patch applied by Gentoo?
    To be more precise, it resizes as if I am grabbing the top right corner. Here is a screenshot. I doubt it's Gentoo's fault. Gentoo generally doesn't mess with installs. I run KDE.

    Quote Originally Posted by wysota View Post
    Hard to say, I have the most recent stable version of Qt and dock windows work fine. It is true that there has been some problem with dock windows in some earlier releases.

    In general please check which Qt version you have (you can do it by calling qmake -v).
    QT 4.2.2. I used designer to create the dock window right inside the main window. And used its properties there to bind it to the top/bottom edges. I can't move it anymore.

    Greetings.
    "The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry

  4. #4
    Join Date
    Jan 2006
    Posts
    128
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Recent changes in QT 4?

    Quote Originally Posted by Michiel View Post
    QAction::activated() is part of the QT 3 support.

    If you have compiled Qt without it, activated will not be available.

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.