PDA

View Full Version : which is the property to edit the margins of Qt application form



maverick
29th May 2013, 13:06
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

rawfool
29th May 2013, 13:11
setWindowFlags(Qt::FramelessWindowHint);

maverick
29th May 2013, 14:29
by setting this flag
setWindowFlags(Qt::FramelessWindowHint);

application window is not getting displayed

rawfool
29th May 2013, 14:58
can you post some code ?

maverick
29th May 2013, 15:04
int main(int argc, char *argv[])
{

QApplication a(argc, argv);
menu w;

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

rawfool
29th May 2013, 15:22
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:

w.setWindowFlags(Qt::FramelessWindowHint); // 1
w.show();// 2

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.

maverick
29th May 2013, 15:38
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