Results 1 to 5 of 5

Thread: Previewing a stack widget dialog

  1. #1
    Join Date
    Sep 2006
    Posts
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Previewing a stack widget dialog

    I am using the new Windows version of Qt Designer v4.1.1 and am having a problem previewing a stack widget dialog.

    When I preview a simple dialog, in XP Windows style say, it gets placed in the top left-hand corner of the screen with no title bar or title bar controls. It displays correctly and pressing ESC closes it. Is this the correct behaviour?

    When I do this with a typical 'settings' dialog comprising a listview of choices and a widget stack it displays alright and responds to the change stack page controls but ESC does nothing and the whole thing hangs. The only way out is to kill the Designer application task.

    I am using a Matrox millenium 650 graphics card running two monitors in DualHead mode; this might be significant.

    Can anyone help with this?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Previewing a stack widget dialog

    Quote Originally Posted by mikeh View Post
    Is this the correct behaviour?
    I don't think so. Check if the same thing happens with Qt 4.1.4.

  3. #3
    Join Date
    Sep 2006
    Posts
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Previewing a stack widget dialog

    Quote Originally Posted by jacek View Post
    I don't think so. Check if the same thing happens with Qt 4.1.4.
    Just installed Qt 4.1.4 and the behaviour is the same. I would appreciate an answer to my first query: is it normal for the preview to be placed in the top-left corner of the screen without a title bar and is ESC the proper way of terminating it? This would narrow the field to just stacked widgets. Many thanks for any comments.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Previewing a stack widget dialog

    Quote Originally Posted by mikeh View Post
    I would appreciate an answer to my first query
    As I already wrote, I don't think it's a correct behavior. IMO you should contact the Trolls as this looks like a bug.

  5. #5
    Join Date
    Sep 2006
    Posts
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Previewing a stack widget dialog

    The source of this problem has now been identified. Firstly, the lack of response to ESC was my fault, I created a QWidget rather than a QDialog. As to the principal problem; the driver for the Matrox graphics card (millennium P650) I am using provides the option (in their words): 'save and restore the size and position of program windows each time you open and close program windows' and in my case this option was turned on; turning it off solves the problem.

    The problem has been around for some time. With Qt3 its affect is to cause dialog windows to display at a larger size than expected when they are displayed for the first time. The behaviour reverts to normal after resizing. In the Qt4 Designer preview case the affect was more obvious and it seems to have screwed up the dialogs position as well as its size. I have never had any trouble from Microsoft apllications, or indeed any other than Qt applications.

    Clearly, the Matrox driver must be up to tricks with the Win32 api and Qt is following a different practice in its window creation from that used in other applications. The simple solution for the developer is to turn the option off.

    I should perhaps mention that the problem was still present using the latest Matrox driver P650 1.11.0.114 and Qt4.1.4.

Similar Threads

  1. Replies: 4
    Last Post: 25th August 2014, 18:05
  2. QWidget display on 2 stack widget page
    By spawnwj in forum Qt Programming
    Replies: 3
    Last Post: 4th September 2006, 12:07
  3. Referencing Parent Widget from Child
    By taylor34 in forum Qt Programming
    Replies: 8
    Last Post: 11th April 2006, 15:13
  4. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 14:16
  5. dialog box
    By Bahar in forum Qt Programming
    Replies: 3
    Last Post: 31st January 2006, 14:52

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.