qt4

How can I optimize the performance of a QGraphicsView-based app?

六眼飞鱼酱① 提交于 2020-12-29 14:27:52
问题 I have an app which is based on the Qt Graphics View framework. It's a jigsaw puzzle game which basically cuts a pixmap into smaller pixmaps (puzzle pieces) and displays them as QGraphicsItem s in a QGraphicsView . I want this app to run on smartphones and tablets. (It already runs on the Nokia N900 and some Symbian phones. Not optimized for Symbian^3 yet.) The source is on Gitorious. The items inherit QGraphicsItem and QObject , and have Q_PROPERTY macros for the pos() and rotation() of the

How can I optimize the performance of a QGraphicsView-based app?

孤街浪徒 提交于 2020-12-29 14:19:08
问题 I have an app which is based on the Qt Graphics View framework. It's a jigsaw puzzle game which basically cuts a pixmap into smaller pixmaps (puzzle pieces) and displays them as QGraphicsItem s in a QGraphicsView . I want this app to run on smartphones and tablets. (It already runs on the Nokia N900 and some Symbian phones. Not optimized for Symbian^3 yet.) The source is on Gitorious. The items inherit QGraphicsItem and QObject , and have Q_PROPERTY macros for the pos() and rotation() of the

How can I optimize the performance of a QGraphicsView-based app?

左心房为你撑大大i 提交于 2020-12-29 14:14:13
问题 I have an app which is based on the Qt Graphics View framework. It's a jigsaw puzzle game which basically cuts a pixmap into smaller pixmaps (puzzle pieces) and displays them as QGraphicsItem s in a QGraphicsView . I want this app to run on smartphones and tablets. (It already runs on the Nokia N900 and some Symbian phones. Not optimized for Symbian^3 yet.) The source is on Gitorious. The items inherit QGraphicsItem and QObject , and have Q_PROPERTY macros for the pos() and rotation() of the

How can I optimize the performance of a QGraphicsView-based app?

假装没事ソ 提交于 2020-12-29 14:08:06
问题 I have an app which is based on the Qt Graphics View framework. It's a jigsaw puzzle game which basically cuts a pixmap into smaller pixmaps (puzzle pieces) and displays them as QGraphicsItem s in a QGraphicsView . I want this app to run on smartphones and tablets. (It already runs on the Nokia N900 and some Symbian phones. Not optimized for Symbian^3 yet.) The source is on Gitorious. The items inherit QGraphicsItem and QObject , and have Q_PROPERTY macros for the pos() and rotation() of the

How can you edit a QTableView cell from a QTest unit test?

可紊 提交于 2020-12-29 06:51:30
问题 I'm writing a unit test for a custom Validator in a QTableView using the QTestLib framework. One of the most basic test cases could be described like this: Double click the table cell in the third column and the fourth row, and append the number '5' to its content. It is not sufficient to simply change the value in the model or anything, the test case shall perform it like this: Double Click the table cell to set it into edit mode Press the [End] key. Press the [5] key. Note: This question

How can you edit a QTableView cell from a QTest unit test?

╄→尐↘猪︶ㄣ 提交于 2020-12-29 06:50:09
问题 I'm writing a unit test for a custom Validator in a QTableView using the QTestLib framework. One of the most basic test cases could be described like this: Double click the table cell in the third column and the fourth row, and append the number '5' to its content. It is not sufficient to simply change the value in the model or anything, the test case shall perform it like this: Double Click the table cell to set it into edit mode Press the [End] key. Press the [5] key. Note: This question

Create .csv file in C++ in qt

若如初见. 提交于 2020-12-05 05:32:28
问题 I want to create an csv file using c++, using Qt for application and UI framework. Is there's library for csv file. 回答1: You could basically look into libqxt. Using QxtCsvModel The QxtCsvModel [libqxt.bitbucket.org] class provides a QAbstractTableModel [qt-project.org] for CSV Files. This is perhaps the easiest way possible to read and write csv files without having to parse the csv format to something qt can understand. It’s as simple as using one line of code, for example the following