Results 1 to 7 of 7

Thread: which is the property to edit the margins of Qt application form

  1. #1
    Join Date
    May 2013
    Posts
    20
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question which is the property to edit the margins of Qt application form

    for the Qt based application i have developed does not require windows title bar, for removing this feature is their any property of the form in Qt, so as to take the visibility/activated state of window title bar to false....please help

  2. #2
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    254
    Thanks
    92
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: which is the property to edit the margins of Qt application form

    Qt Code:
    1. setWindowFlags(Qt::FramelessWindowHint);
    To copy to clipboard, switch view to plain text mode 

  3. The following user says thank you to rawfool for this useful post:

    maverick (30th May 2013)

  4. #3
    Join Date
    May 2013
    Posts
    20
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: which is the property to edit the margins of Qt application form

    by setting this flag
    setWindowFlags(Qt::FramelessWindowHint);

    application window is not getting displayed

  5. #4
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    254
    Thanks
    92
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: which is the property to edit the margins of Qt application form

    can you post some code ?

  6. The following user says thank you to rawfool for this useful post:

    maverick (30th May 2013)

  7. #5
    Join Date
    May 2013
    Posts
    20
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: which is the property to edit the margins of Qt application form

    int main(int argc, char *argv[])
    {

    QApplication a(argc, argv);
    menu w;

    w.show();
    w.setWindowFlags(Qt::FramelessWindowHint);

  8. #6
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    254
    Thanks
    92
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: which is the property to edit the margins of Qt application form

    I'm guessing this, but posting code more in detail only will help solving the problem quickly. I couldn't understand what menu widget is.

    interchange the lines:
    Qt Code:
    1. w.setWindowFlags(Qt::FramelessWindowHint); // 1
    2. w.show();// 2
    To copy to clipboard, switch view to plain text mode 

    As ChrisW67 says:
    If you are posting code then please use tags around it. The forum will link class names to docs, add syntax highlighting, and won't mangle your code. Above all, it makes your question easier to address.

  9. The following user says thank you to rawfool for this useful post:

    maverick (30th May 2013)

  10. #7
    Join Date
    May 2013
    Posts
    20
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: which is the property to edit the margins of Qt application form

    thanks ....it's working


    Added after 6 minutes:


    can u help me with
    How to implement Qt applicationfrom taking inputs from 4x4 matrix keypad

    please
    Last edited by maverick; 29th May 2013 at 15:38.

Similar Threads

  1. Replies: 2
    Last Post: 4th April 2013, 07:36
  2. Replies: 9
    Last Post: 5th December 2012, 20:52
  3. Replies: 0
    Last Post: 1st November 2012, 08:11
  4. How to check the changes/Edit done on the form onStackWidget
    By Ratheendrans in forum Qt Programming
    Replies: 1
    Last Post: 25th November 2010, 13:29
  5. View/edit database in a table and in a form
    By igorko in forum Qt Programming
    Replies: 1
    Last Post: 16th June 2006, 10:09

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.