Results 1 to 3 of 3

Thread: QMessgaeBox in QCleanLookStyle

  1. #1
    Join Date
    Aug 2008
    Posts
    134
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QMessgaeBox in QCleanLookStyle

    Hi,
    I have used QCleanlooksStyle to my application. Whenever a message box pops up in my application the buttons appears to be displaced. example: OK and CANCEL button appears proper in window style (OK followed by CANCEL), but in cleanlooks it appears in different order(CANCEL followed by OK). Can anyone tell me how can i resolve this.

    Thank you in advance

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMessgaeBox in QCleanLookStyle

    For me this works same in all styles. Means "OK" comes before "Cancel", always.

    Qt Code:
    1. QMessageBox msg("title", "message", QMessageBox::NoIcon, QMessageBox::Ok, QMessageBox::Cancel,0,0);
    2. msg.exec();
    To copy to clipboard, switch view to plain text mode 

    Show us how you popping up your message box.

  3. #3
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    507
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QMessgaeBox in QCleanLookStyle

    Hi, I think it's a feature, not a bug. The GNOME style guidelines state it that way and QCleanLooksStyle tries to cling to these guidelines.

    Ginsengelf

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.