QtQuick.Controls 2.0无法接受ApplicationWindow的宽度/高度

时间:2016-10-21 15:32:44

标签: qt

你好!

在我自己的Qt示例库中的任何项目中,QtQuick.Controls 2.0的导入都不接受ApplicationWindow中的属性width,height或visible。怎么了?

我正在使用Qt 5.7,Windows 10。

感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

对于任何挣扎于同一问题的人,请执行此操作:<html> <head> <title>Registration Form</title> </head> <body> <br /> <h2 align="center">Register a new customer</h2> <h3 align="center">Fill all fields</h3> <form action="insertdata.php" method="post"> <table align="center"> <tr> <td>First Name:</td> <td><input type="text" id="fname" name="fname" /></td> </tr> <tr> <td>Middle Name:</td> <td><input type="text" id="mname" name="mname" /></td> </tr> <tr> <td>Last Name:</td> <td><input type="text" id="lname" name="lname" /></td> </tr> <tr> <td>NIC / Driving License No:</td> <td><input type="text" id="NICNo" name="nicno" /></td> </tr> <tr> <td>Permanent Address Name:</td> <td><input type="text" id="paddress" name="paddress" /></td> </tr> <tr> <td>E-Mail Address:</td> <td><input type="text" id="email" name="email" /></td> </tr> <tr> <td>Telephone:</td> <td><input type="text" id="telno" name="telno" /></td> </tr> <tr> <td>Mobile No:</td> <td><input type="text" id="mobileno" name="mobileno" /></td> </tr> <tr> <td>Date of Registration:</td> <td><input type="text" id="regdate" name="regdate" /></td> </tr> <tr><td></td></tr> <tr><td></td></tr> <tr><td></td></tr> <tr><td></td></tr> <tr><td></td></tr> <tr><td></td></tr> <tr> <td align="center"><input type="submit" />&nbsp;&nbsp;&nbsp; <input type="reset" /></td> </tr> </table> </form> </body> 最后一切正常!