实现文本编辑器
第一步,绘制UI
新建mainwindow工程,绘制UI建立常见菜单
在动作编辑器中对各个菜单的属性进行设置
拖动Action到工具栏
在toolbar的属性中设置,
如图所示,使图标和
文字全部都显示
在主窗口的中心拖入一个文本编辑器Text Edit。
我们选中主窗口部件,然后在空白处点击鼠标右键,选择Layout->Lay Out in a Grid,使整个主窗口的中心区处于网格布局管理器中。
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.010278s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.077479s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001083s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001130s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001098s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003219s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000889s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003796s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.016225s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001782s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 256226 [ RunTime:0.015468s ]