Results 1 to 7 of 7

Thread: Remove the Closse button (X) on the top right side

  1. #1
    Join Date
    Jan 2007
    Posts
    21
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Remove the Closse button (X) on the top right side

    How can i remove the close button i.e X present at the top right corner from my Dialog form?

  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: Remove the Closse button (X) on the top right side

    From within Designer? You can't. You need to pass appropriate window flags to QWidget's constructor to do that.

  3. #3
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Remove the Closse button (X) on the top right side

    Quote Originally Posted by Sheetal View Post
    How can i remove the close button i.e X present at the top right corner from my Dialog form?
    I am running "Kubuntu", a KDE desktop,
    In the "System Settings>Look and Feel>Appearance>Window Decorations>button" you can drag the dastardly "X" to the left end of the title bar where it belongs.
    I can't do this in "gnome" therfor i don't even think of using it!!!
    Hope this helps

  4. #4
    Join Date
    Jan 2007
    Posts
    21
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Disable the "X" button on the Dialog

    Hi,

    I have created my screens using the QT Designer. I want to disable the "X" ( close button) present at the right top corner. How can i do that??

  5. #5
    Join Date
    Jan 2007
    Posts
    21
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Remove the Closse button (X) on the top right side

    should i paas these flags from the init function??
    what exactly do i need to do?

  6. #6
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Disable the "X" button on the Dialog

    Quote Originally Posted by Sheetal View Post
    Hi,

    I have created my screens using the QT Designer. I want to disable the "X" ( close button) present at the right top corner. How can i do that??
    As I said in my previous post, if you are using a KDE desktop, which I assume you are if you are using "designer" you can drag the "X" to the left end of the title bar by
    "System Settings>Look and Feel>Appearance>Window Decorations>button"
    If you set this before using "designer" it will there in "designer", also in "Kdevelop" for that matter, or any other programs you run in the "KDE"
    desktop.

    If you want it to be embedded in your program itself, mysota will have to answer that.

  7. #7
    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: Disable the "X" button on the Dialog

    Quote Originally Posted by impeteperry View Post
    If you want it to be embedded in your program itself, mysota will have to answer that.
    I think I already did.

Similar Threads

  1. Replies: 2
    Last Post: 1st August 2006, 10:23
  2. QSettings again ... how to remove array elements
    By Mike in forum Qt Programming
    Replies: 4
    Last Post: 11th January 2006, 08:58

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.