Results 1 to 4 of 4

Thread: Qt4 designer SLOW - how to fix?

  1. #1
    Join Date
    Mar 2006
    Posts
    74
    Thanks
    1
    Qt products
    Qt3
    Platforms
    MacOS X Unix/X11 Windows

    Default Qt4 designer SLOW - how to fix?

    I have started porting my Qt3 app to Qt4. This of course means that I need to spend time in designer cleaning up the mess that is created when the forms are converted. (Why does this make horizontal spacers vertical? And why doesn't it just keep the same size policy settings as the Qt3 form?) I am finding Qt designer to be VERY SLOW on my system. On complex dialogs it can take 30 seconds just to select a widget and it uses huge amounts of CPU while this is happening. This can't be right and there must be something wrong with how this is configured or some other issue. Designer is so slow that it is painful to work with and this is having a significant impact on my productivity and is delaying the porting work that I need to do. Anyone here have any ideas about how to fix this?

  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: Qt4 designer SLOW - how to fix?

    Remember that automatic gizmos might sometimes fail. For some dialogs it might be easier to simply recreate the form in Qt4 Designer instead of relying on Designer to port them by itself. Why did it wreck your form? I don't know, I'd have to see the Qt3 form and try it myself. Why is it slow? Probably either because of an incorrect port, an unstable version of Designer or because of a big complexity of the form in question.

  3. #3
    Join Date
    Mar 2006
    Posts
    74
    Thanks
    1
    Qt products
    Qt3
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt4 designer SLOW - how to fix?

    The forms were ported using uic3 -convert. I have most of the issues related to the conversion sorted out but things are still running very slow. Designer eats up CPU when I do anything in it and running top I see that this is in calls to xorg. Even on very simple forms it is slow as in taking 5 seconds to select a widget.

    But I did some googling and it appears that there are problems with Qt4, XRender and the Nvidia proprietary drivers. I found one source that says to set QT_X11_NO_XRENDER=1 and I found that designer is now very fast but it has a negative impact on the look of Qt4 apps. For example buttons no longer have a border. But this I can live with since the performance the other way was so bad that it was making me wish I had not started work on the Qt4 port.

  4. #4
    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: Qt4 designer SLOW - how to fix?

    You might want to inspect the generated code manually (again, tools are not perfect) and make sure you run the stable version of Designer (meaning no 4.4 snapshots or tp1).

Similar Threads

  1. Designer form creation very slow
    By MrGarbage in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 22:20
  2. centralWidget and QDockWidgets in designer
    By momesana in forum Qt Tools
    Replies: 1
    Last Post: 18th December 2006, 11:56
  3. Replies: 13
    Last Post: 15th December 2006, 11:52
  4. Designer crashes when selecting some widgets
    By gwendal in forum Qt Tools
    Replies: 4
    Last Post: 21st July 2006, 13:18
  5. Adding slots in Designer
    By jamos in forum Qt Tools
    Replies: 5
    Last Post: 18th May 2006, 23:28

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.