Results 1 to 3 of 3

Thread: Dialog block in windows

  1. #1
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Dialog block in windows

    In linux everything works, in windows not.
    I am wondering if Qt is a real cross-platform library...
    Anyway, I have the following code:
    Qt Code:
    1. void MyPlot::gridset()
    2. {
    3. gridSettings->setVisible(true);
    4. gridSettings->raise();
    5. }
    To copy to clipboard, switch view to plain text mode 

    which is called after a context menu action. In linux I get the dialog gridSettings (created by the designer), and I can user its controls and I can close it.
    In windows, it appears, blocks, and stary there forever....

  2. #2
    Join Date
    Mar 2008
    Posts
    141
    Thanks
    10
    Thanked 9 Times in 9 Posts

    Default Re: Dialog block in windows

    Hi,

    i had similar problems with setting windowFlags which behave different on windows/linux. Are you setting any Flags? But about just calling gridSettings->show() ?
    If your dialog is a tool than you might use the Qt::Tool Flag.

  3. #3
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Dialog block in windows

    If it does behave differently, it should be stated in the documentation, while it is not.
    The funny thing is that I have two perfect similar dialogs. One behaves correctly, the other one not.
    My class inherit a dialog created by the designer.
    Which flags do you mean? Are they parameters of the constructor of what?
    Anyway, thank you for the reply.
    G

Similar Threads

  1. Dialog block in windows
    By giusepped in forum Qt Programming
    Replies: 1
    Last Post: 23rd December 2008, 21:43
  2. Dialog on right click on windows?
    By vishal.chauhan in forum Qt Programming
    Replies: 5
    Last Post: 4th August 2008, 09:36
  3. converting Windows dialog resources to ui
    By Thor28 in forum Qt Tools
    Replies: 3
    Last Post: 21st April 2008, 15:13
  4. Block close dialog
    By Mrdata in forum Newbie
    Replies: 2
    Last Post: 12th March 2007, 15:39
  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.