Home > Mobile >  The c + + Builder quick start kit, if use Qt to write, what control right?
The c + + Builder quick start kit, if use Qt to write, what control right?

Time:01-06

A pile of icon management, icon display and container, etc., with what controls appropriate?

On c + + Builder:
https://www.cnblogs.com/ustone/

CodePudding user response:

Icon in the list with QListWidget viewMode set as IconMode
Use QTabWidget outside

CodePudding user response:

reference 1st floor mideum response:
icon list with QListWidget viewMode set to IconMode
Outside use QTabWidget

Background management a bunch of ICONS with what controls?

CodePudding user response:

refer to the second floor ooolinux response:
background management a bunch of ICONS with what controls?

What is the background management? What is the relationship between the background with control?
Each icon as a QListWidgetItem to the QListWidget

CodePudding user response:

reference mideum reply: 3/f
Quote: refer to the second floor ooolinux response:

Background management a bunch of ICONS with what controls?

What is the background management? What is the relationship between the background with control?
Each icon as a QListWidgetItem to the QListWidget

Background management mainly is the icon of storage and management,

CodePudding user response:

reference 4 floor ooolinux response:
background management mainly is the icon of storage and management,

As I said, if only simple management, it is ok to use QListWidgetItem
Because I don't know what you need to manage
If there is a complicated content, it is best to write their own model inherit QAbstractListModel, then controls using QListView rather than QListWidget, namely USES the model/View architecture

CodePudding user response:

reference 5 floor mideum reply:
Quote: refer to 4th floor ooolinux response:

Background management mainly is the icon of storage and management,

As I said, if only simple management, it is ok to use QListWidgetItem
Because I don't know what you need to manage
If there is a complicated content, it is best to write their own model inherit QAbstractListModel, then controls using QListView rather than QListWidget, that is, using the model/View architecture

That each item separately loaded icon? C + + Builder is an ImageList to unified management icon or image, ListView and ImageList associations, each item as long as you specify imageIndex can obtain the corresponding icon, similar to the Qt?

CodePudding user response:

refer to 6th floor ooolinux response:
that each item separately to load the icon? C + + Builder is an ImageList to unified management icon or image, ListView and ImageList associations, each item as long as you specify imageIndex can obtain the corresponding icon, similar to the Qt?

No ready-made, you mean only one ImageList, but can be associated with multiple ListView and each ListView display a different icon list is it
This feels more like a Model/View architecture, that is, do you have a practical management Model is a list of images, then each QListView corresponding to a display different content proxyModel
But it will be implemented

CodePudding user response:

refer to 7th floor mideum response:
Quote: refer to the sixth floor ooolinux response:

That each item separately loaded icon? C + + Builder is an ImageList to unified management icon or image, ListView and ImageList associations, each item as long as you specify imageIndex can obtain the corresponding icon, similar to the Qt?

No ready-made, you mean only one ImageList, but can be associated with multiple ListView and each ListView display a different icon list is it
This feels more like a Model/View architecture, that is, do you have a practical management Model is a list of images, then each QListView corresponding to a display different content proxyModel
But this all want to achieve

ImageList can also be multiple, each a ImageList ListView association,

CodePudding user response:

refer to the eighth floor ooolinux response:
ImageList can also be multiple, each a ListView correlation ImageList,

If it is one-to-one then the simplest is to use QListWidget + QListWidgetItem, don't know whether you have any questions?
As you say have a ImageList is also possible, of course, is no ready-made, want to write their own model ah, just like that
  •  Tags:  
  • Qt
  • Related