Details
-
Task
-
Resolution: Done
-
P2: Important
-
5.7.0
-
None
Description
General
Add more GIFsMake sure the first frame serves as a good screenshothttps://codereview.qt-project.org/#/c/175521/Try to match the first frame of the GIF with a snippet next to itCan replace the image tables of controls in different states in many places
Double the check the brief descriptions.Elaborate on the "A foo control" ones.https://codereview.qt-project.org/#/c/175518/Make them all follow the same format.https://codereview.qt-project.org/#/c/175518/
Attached propertiesUsers conceive them confusing. Add short examples to give an idea how to use.
ApplicationWindow
Customizing ApplicationWindowImage or gradient as a backgroundhttps://codereview.qt-project.org/#/c/172783/
Detailed descriptionLink to Customizing ApplicationWindowhttps://codereview.qt-project.org/#/c/172783/
ApplicationWindow::backgroundMention that ApplicationWindow::background is only useful for images/gradients etc. Window::color is better for solid colorshttps://codereview.qt-project.org/#/c/172783/Link to Customizing ApplicationWindowhttps://codereview.qt-project.org/#/c/172783/
ApplicationWindow::contentDataElaborate. Copy parts of Window::data?https://codereview.qt-project.org/#/c/172783/
ApplicationWindow::contentItemWhat is the purpose, or what is it useful for?Always stacked below the header, footer, and the overlay of coursehttps://codereview.qt-project.org/#/c/172783/
ApplicationWindow::footer, headerAdd a snippet containing ToolBar (share with Page?)https://codereview.qt-project.org/#/c/175379/
ApplicationWindow::overlayMissing pressed() and released() signalshttps://codereview.qt-project.org/#/c/172783/An example snippet with some “static” / non-popup overlay content
Attached properties
BusyIndicator
Detailed descriptionShould we have any tips when to use BusyIndicator vs. indeterminate ProgressBar?https://codereview.qt-project.org/#/c/175442/
Button
Button::autoRepeatFix pressed(), released() and clicked() to be presented as linkshttps://codereview.qt-project.org/#/c/171373/
Button::checkableElaborate. “A checkable button toggles between checked (on) and unchecked (off) when the user...”https://codereview.qt-project.org/#/c/171373/See also CheckBox, Switch?https://codereview.qt-project.org/#/c/171373/Link to AbstractButton::checkedhttps://codereview.qt-project.org/#/c/171373/
Button::flat & highlightedScreenshots would be nicehttps://codereview.qt-project.org/#/c/172469/
CheckBox
Detailed descriptionReplace state images with a GIFhttps://codereview.qt-project.org/#/c/172517/Could be helpful mention something that basically the whole API is inherited from AbstractButton.https://codereview.qt-project.org/#/c/171365/Mention CheckDelegate, explain the difference between the two, and link to CheckDelegate.https://codereview.qt-project.org/#/c/171365/
CheckBox::tristateA screenshot of a tri-state checkbox?https://codereview.qt-project.org/#/c/172517/
CheckDelegate
Detailed descriptionCould be helpful mention something that basically the whole API is inherited from ItemDelegate and AbstractButton.https://codereview.qt-project.org/#/c/171363/Mention CheckBox, explain the difference between the two, and link to CheckBox.https://codereview.qt-project.org/#/c/171363/
CheckDelegate::tristateA screenshot of a tri-state checkbox?https://codereview.qt-project.org/#/c/173067/
ComboBox
Detailed descriptionFix the screenshot to not have elided itemshttps://codereview.qt-project.org/#/c/173244/
ComboBox::currentIndexLink to highlightedIndexhttps://codereview.qt-project.org/#/c/173244/
ComboBox::delegateAbstractButton works out of the boxhttps://codereview.qt-project.org/#/c/173244/With other types, have to close the popup by handhttps://codereview.qt-project.org/#/c/173244/
ComboBox::highlightedIndexIt is the highlighted item in the popup, -1 when the popup is closedhttps://codereview.qt-project.org/#/c/173244/When a highlighted item is activated, it becomes the current indexhttps://codereview.qt-project.org/#/c/173244/
ComboBox::indicatorLink to Customizing ComboBoxhttps://codereview.qt-project.org/#/c/173244/
ComboBox::popupMention that it's possible to open or close the popup manually, for instancehttps://codereview.qt-project.org/#/c/173244/
ComboBox::pressedDoes it stay pressed when the popup is open? I think so, but should be clarified...https://codereview.qt-project.org/#/c/173244/
ComboBox::textRoleWhen the model has multiple roles, ComboBox needs to know which one to usehttps://codereview.qt-project.org/#/c/173244/
ComboBox::activated(int index) & :highlighted(int index)Elaborate. Activating means selecting an item that the popup closes, or selecting an item with up/down arrows while its closed. The current index changes. Highlighting an item doesn't select/activatehttps://codereview.qt-project.org/#/c/173244/
ComboBox::incrementCurrentIndex() & decrementCurrentIndex()Typo: "or the highlighted index if the popup list when it is visible."https://codereview.qt-project.org/#/c/173244/
Control
Detailed descriptionExplain the diagramhttps://codereview.qt-project.org/#/c/171463/Give a linkable title for the diagramhttps://codereview.qt-project.org/#/c/171463/Add "Control", "width" and "height" to the diagramhttps://codereview.qt-project.org/#/c/171463/
Control::availableWidth, availableHeightLink to the diagramhttps://codereview.qt-project.org/#/c/171477/Elaborate. The width/height available for content. Horizontal/vertical padding deducted from the total width/height.https://codereview.qt-project.org/#/c/171484
Control::backgroundExample snippethttps://codereview.qt-project.org/#/c/171569/Notice that most controls use the implicit size of the background item to calculate the implicit size of the control itself. If you replace the background with a custom one, you should also consider providing a sensible implicit size for it (unless it's eg. Image that already calculates its implicit size).https://codereview.qt-project.org/#/c/171484/
Control::contentItemThe content item is resized within the paddings.Notice that most controls use the implicit size of the content item to calculate the implicit size of the control itself. If you replace the content item with a custom one, you should also consider providing a sensible implicit size for it (unless it's eg. Text that already calculates its implicit size).https://codereview.qt-project.org/#/c/171484/Example snippethttps://codereview.qt-project.org/#/c/171569/
Control::fontExample snippet with font inheritancehttps://codereview.qt-project.org/#/c/171569/
Control::padding, topPadding, leftPadding, rightPadding, bottomPaddingLink to the diagramhttps://codereview.qt-project.org/#/c/171477/Elaborate. These are used to control the geometry of the content item.https://codereview.qt-project.org/#/c/171484/
Control::mirroredBut when is the visual layout direction is right-to-left? RTL locale or LayoutMirroring.enabled.https://codereview.qt-project.org/#/c/171484/
Control::spacingElaborate. Typically used by controls that have multiple or repetitive building blocks.https://codereview.qt-project.org/#/c/171484
Control::wheelEnabledExplain that for example a Slider that handles wheel events would conflict with a Flickable handling wheel events. Wheel scrolling the flickable is interrupted at the slider.https://codereview.qt-project.org/#/c/171484/
Container
Detailed description"Typically the content items are statically declared as children of the container, but Container also provides an API to \l add, \l insert, \l move and \l remove items dynamically."https://codereview.qt-project.org/#/c/171341/
Dial
Detailed descriptionMissing GIF/screenshothttps://codereview.qt-project.org/#/c/175415/
Dial::angleDocument the rangehttps://codereview.qt-project.org/#/c/171340/
Dial::handleFix the property type: Itemhttps://codereview.qt-project.org/#/c/171340/
Dial::pressedDoes the example not break left key handling?Mitch: yeah, it's intentional (see the paragraph before the example).
Dial::stepSizeWhat does the default stepSize 0.0 mean in practice? 0.1 steps? 10% steps?https://codereview.qt-project.org/#/c/171340/
Dial::wrapThe GIFs are hard to follow since you can't see the cursor / touch pointQTBUG-56868
Drawer
Detailed descriptionA GIF would explain a lothttps://codereview.qt-project.org/#/c/175414/Split the snippet? First a basic snippet without any content pushing tricks? The content pushing example is based on Drawer::position, so it could be moved there.https://codereview.qt-project.org/#/c/171717/Add to the note about the reserved edges on certain platforms. "For example, the top and bottom edges on Android and iOS".https://codereview.qt-project.org/#/c/175181/
Drawer::edgeThe edge of the window, not content itemhttps://codereview.qt-project.org/#/c/175181/
Drawer::positionWould \c 0.0 and \c 1.0 stand out better from the text?https://codereview.qt-project.org/#/c/175181/
Frame
Detailed descriptionlink to Control::contentItemhttps://codereview.qt-project.org/#/c/171346/
GroupBox
Brief descriptionMatch with Frame and mention titlehttps://codereview.qt-project.org/#/c/171351/
Detailed descriptionAvoid auto-links to itself?https://codereview.qt-project.org/#/c/171351/link to Control::contentItemhttps://codereview.qt-project.org/#/c/175183/s/behavior of the groupbox/behavior of the checkbox/https://codereview.qt-project.org/#/c/171351/
GroupBox::titleElaborate? Where the title is shown or something?https://codereview.qt-project.org/#/c/171351/
ItemDelegate
Detailed descriptionCould be helpful mention something that basically the whole API is inherited from AbstractButton.Mitch: this is already mentioned there.
ItemDelegate::highlightedThe mention of the default value seems out of place. Move it before the snippet and the explanation?
Label
Detailed descriptionlink to Texthttps://codereview.qt-project.org/#/c/175191/
Material
Attached propertiesExamples and screenshots of them!https://codereview.qt-project.org/#/c/172286
Menu
Detailed description"Typically the menu items are statically declared as children of the menu, but Menu also provides an API to \l add, \l insert, \l move and \l remove items dynamically. The items in a menu can be accessed using \l itemAt() or \l contentChildren."https://codereview.qt-project.org/#/c/171690/Mention also that Menu is not limited to MenuItems, but can contain basically any items.https://codereview.qt-project.org/#/c/171690/
Menu::contentDataElaborate. Borrow something from Container::contentData, Item::datahttps://codereview.qt-project.org/#/c/171690/
Menu::contentModelBorrow something from Container::contentModelhttps://codereview.qt-project.org/#/c/171690/It is a read-only property, so drop the "by default" comment.https://codereview.qt-project.org/#/c/171690/Don't promise an ObjectModel, because we may have to change it to something else in the future to deal with hidden items.https://codereview.qt-project.org/#/c/171690/
Menu::titleCould do some rephrasing...https://codereview.qt-project.org/#/c/171690/Could drop the mention of the default empty string. It's silly and obvious.https://codereview.qt-project.org/#/c/171690/Elaborate. Not used by anything (yet?). What is it for? How can it be used?https://codereview.qt-project.org/#/c/171690/Example snippet?Mitch: left out for now as it wouldn't add much value.
Menu::addItem(), insertItem(), moveItem(), removeItem()an item or the item?https://codereview.qt-project.org/#/c/171690/
MenuItem
Detailed descriptionRephrase. Talks about AbstractButton's "clicked" but provides its own "triggered".https://codereview.qt-project.org/#/c/171692/
MenuItem::checkableElaborate. “A checkable menu item toggles between checked (on) and unchecked (off) when the user...”https://codereview.qt-project.org/#/c/171692/Link to AbstractButton::checkedhttps://codereview.qt-project.org/#/c/171692/
Page
Page::contentChildren, contentDataElaborate. Borrow something from Container::contentChildren, Container::contentData, Item::children, Item::datahttps://codereview.qt-project.org/#/c/171700/
Page::titleElaborate. Not used by anything (yet?). What is it for? How can it be used?https://codereview.qt-project.org/#/c/171700/Example snippethttps://codereview.qt-project.org/#/c/171700/
PageIndicator
Detailed descriptionAdd eg. StackLayout to the example snippet to show realistic usage/bindings?https://codereview.qt-project.org/#/c/171723/
PageIndicator::interactiveExample snippet with 2-way bindings to SwipeViewhttps://codereview.qt-project.org/#/c/171723/Mention that the indicators are typically relatively small. They can be hard to hit. It may not be obvious to the user that the indicators are interactive. So for these several reasons, this should not be the only/main method of navigation!https://codereview.qt-project.org/#/c/171723/
Pane
Detailed descriptionlink to Control::contentItemhttps://codereview.qt-project.org/#/c/171733/
Pane::contentChildren, contentDataElaborate. Borrow something from Container::contentChildren, Container::contentData, Item::children, Item::datahttps://codereview.qt-project.org/#/c/171733/
Pane::contentWidth, contentHeightThese provide a way to set the implicit size of the content. Any padding or decoration (with Frame & GroupBox) is added to the total implicit size of the whole control.https://codereview.qt-project.org/#/c/171733/
Popup
Detailed descriptionAdd screenshot(ignored, the default style popup is just a plain rectangle...)Add the same diagram than Control has?https://codereview.qt-project.org/#/c/171808/Explain positioning and sizing behaviorhttps://codereview.qt-project.org/#/c/171808/
Popup::activeFocusPopup::availableWidth, availableHeightElaborate. The width/height available for content. Horizontal/vertical padding deducted from the total width/height.https://codereview.qt-project.org/#/c/171808/
Popup::backgroundExample snippethttps://codereview.qt-project.org/#/c/171808/Notice that most popups use the implicit size of the background item to calculate the implicit size of the popup itself. If you replace the background with a custom one, you should also consider providing a sensible implicit size for it (unless it's eg. Image that already calculates its implicit size).https://codereview.qt-project.org/#/c/171808/
Popup::contentChildren, contentDataElaborate. Borrow something from Container::contentChildren, Container::contentData, Item::children, Item::datahttps://codereview.qt-project.org/#/c/171808/
Popup::contentItemThe content item is resized within the paddings.https://codereview.qt-project.org/#/c/171808/Notice that most popups use the implicit size of the content item to calculate the implicit size of the popup itself. If you replace the content item with a custom one, you should also consider providing a sensible implicit size for it (unless it's eg. Text that already calculates its implicit size).https://codereview.qt-project.org/#/c/171808/Example snippethttps://codereview.qt-project.org/#/c/171808/
Popup:contentWidth, contentHeightThese provide a way to set the implicit size of the content. Any padding or decoration (with Frame & GroupBox) is added to the total implicit size of the whole control.https://codereview.qt-project.org/#/c/175317/
- Popup::dim
- A screenshot would explain a lot
Popup::enter, exitAn example (+ GIF?)https://codereview.qt-project.org/#/c/175317/
Popup::focus\sa activeFocushttps://codereview.qt-project.org/#/c/171808/Has focus or wants focus?https://codereview.qt-project.org/#/c/171808/
Popup::fontExample snippet with font inheritancehttps://codereview.qt-project.org/#/c/175317/
Popup::padding, topPadding, leftPadding, rightPadding, bottomPaddingLink to the diagramhttps://codereview.qt-project.org/#/c/171808/Elaborate. These are used to control the geometry of the content item.https://codereview.qt-project.org/#/c/171808/
Popup::visible\sa open(), close()https://codereview.qt-project.org/#/c/171808/
Popup::zPopups with the same Z-value -> the last opened at the top.https://codereview.qt-project.org/#/c/171808/
Popup::open(), close()\sa visiblehttps://codereview.qt-project.org/#/c/171808/
ProgressBar
Detailed descriptionShould we have any tips when to use indeterminate ProgressBar vs. BusyIndicator?https://codereview.qt-project.org/#/c/175442/Link to Indicator Controlshttps://codereview.qt-project.org/#/c/173767/
RadioButton
Detailed descriptionAdd GIF?https://codereview.qt-project.org/#/c/173072Could be helpful mention something that basically the whole API is inherited from AbstractButton.https://codereview.qt-project.org/#/c/173093Could continue the auto-exclusive paragraph by mentioning that ButtonGroup can be used to manage RadioButtons that do not share a common parent.https://codereview.qt-project.org/#/c/173093Mention RadioDelegate, explain the difference between the two, and link to RadioDelegatehttps://codereview.qt-project.org/#/c/173093
RadioDelegate
Detailed descriptionCould be helpful mention something that basically the whole API is inherited from ItemDelegate and AbstractButton.https://codereview.qt-project.org/#/c/173096/Is it auto-exclusive by default, like RadioButton is? Add the same sentence if so.https://codereview.qt-project.org/#/c/173096/Mention RadioButton, explain the difference between the two, and link to RadioButtonhttps://codereview.qt-project.org/#/c/173096/
RangeSlider
Detailed descriptionAdd another, a bit more complex example snippet. For example, a slider from 1 to 100, first handle at 25, second handle at 75, and explain the values of position and visual position in LTR & RTLhttps://codereview.qt-project.org/#/c/173777/
RangeSlider::snapModeGIFs to illustrate the snapModes?https://codereview.qt-project.org/#/c/173777/
RangeSlider::first/second.increase(), decrease()Is it 0.1 or 10% of the whole range?0.1, as documented.
RoundButton (5.8 only)
Guidelines missing from Button Controlshttps://codereview.qt-project.org/#/c/175545/
ScrollBar
Detailed descriptionA GIF with some real content?https://codereview.qt-project.org/#/c/173059/Give the attaching section a linkable title and link from ScrollBar.vertical and .horizontal attached propertieshttps://codereview.qt-project.org/#/c/173795/Give the "connecting active-properties of two scrollbars" section a linkable title and link from ScrollBar::activehttps://codereview.qt-project.org/#/c/173795/Give an example of manual ScrollBar usage. Without the attached property you have full control over size, position & active.https://codereview.qt-project.org/#/c/173795/
Mention in all properties that are automatically set when using the attached propertyhttps://codereview.qt-project.org/#/c/173795/
ScrollIndicator
Detailed descriptionA GIF with some real content?https://codereview.qt-project.org/#/c/173064/Give the attaching section a linkable title and link from ScrollIndicator.vertical and .horizontal attached propertieshttps://codereview.qt-project.org/#/c/173799/Give the "connecting active-properties of two scrollbars" section a linkable title and link from ScrollIndicator::activehttps://codereview.qt-project.org/#/c/173799/Give an example of manual ScrollIndicator usage. Without the attached property you have full control over size, position & active.https://codereview.qt-project.org/#/c/173799/
Mention in all properties that are automatically set when using the attached propertyhttps://codereview.qt-project.org/#/c/173799/
Slider
Detailed descriptionAdd another, a bit more complex example snippet. For example, a slider from 1 to 100, handle at != 50, and explain the values of position and visual position in LTR & RTLhttps://codereview.qt-project.org/#/c/173228/
Slider::snapModeGIFs to illustrate the snapModes?https://codereview.qt-project.org/#/c/173215/
Slider::increase(), decrease()Is it 0.1 or 10% of the whole range?0.1, as documented.
SpinBox
SpinBox::increase(), decrease()What if stepSize is not defined? 0.1 or 10% like Slider?https://codereview.qt-project.org/#/c/174101/
valueFromText and textFromValue when it should be implemented and both should be implementedhttps://codereview.qt-project.org/#/c/174101/
StackView
Detailed descriptionThis is like a book already, but a GIF would be nicehttps://codereview.qt-project.org/#/c/173909/
SwipeDelegate
Detailed descriptionMissing an example snippethttps://codereview.qt-project.org/#/c/174120/Could be helpful mention something that an important part of the API is inherited from ItemDelegate and AbstractButton.https://codereview.qt-project.org/#/c/174120/
SwipeDelegate::swipe.pressed, completeMissing read-only notationhttps://codereview.qt-project.org/#/c/175297/
SwipeView
Detailed descriptionAdd a GIF to make it easier to get an understanding at a glimpsehttps://codereview.qt-project.org/#/c/175437/"Typically the content items are statically declared as children of the container, but the base type \l Container also provides an API to \l add, \l insert, \l move and \l remove items dynamically."https://codereview.qt-project.org/#/c/127372/
Attached propertiesWhat are they really used for?done in 5.8Example snippets!done in 5.8
Switch
Detailed descriptionCould be helpful mention something that basically the whole API is inherited from AbstractButton.https://codereview.qt-project.org/#/c/175192/Mention SwitchDelegate, explain the difference between the two, and link to SwitchDelegate.https://codereview.qt-project.org/#/c/175192/
SwitchDelegate
Detailed descriptionCould be helpful mention something that basically the whole API is inherited from ItemDelegate and AbstractButton.https://codereview.qt-project.org/#/c/175192/Mention Switch, explain the difference between the two, and link to Switch.https://codereview.qt-project.org/#/c/175192/
TabBar
Brief descriptionAdvertises icons but we don't even support icons (yet).https://codereview.qt-project.org/#/c/175196/
Detailed descriptionAdd a GIF to make it easier to get an understanding at a glimpse(ignored, animation hard to follow without some extensive content. there are several screenshots already)"Typically the content items are statically declared as children of the container, but the base type \l Container also provides an API to \l add, \l insert, \l move and \l remove items dynamically."https://codereview.qt-project.org/#/c/175196/
TabBar::positionInconsistency: ApplicationWindow is a link, Page is not => make both linkshttps://codereview.qt-project.org/#/c/175196/
TabButton
Brief descriptionfound on -> used in?https://codereview.qt-project.org/#/c/173801/
Detailed descriptionCould be helpful mention something that basically the whole API is inherited from AbstractButton.https://codereview.qt-project.org/#/c/173801/
TextArea
Detailed descriptionMake the scrollable section linkable with a title, and link from TextArea.flickable attached property instead of duplicating the example?https://codereview.qt-project.org/#/c/175193/
TextArea::backgroundShare the docs with Control::background (mention implicit size)https://codereview.qt-project.org/#/c/173805/
TextArea::focusReasonShare the docs with Control::focusReason and TextField::focusReasonhttps://codereview.qt-project.org/#/c/173808/
TextField
TextField::backgroundShare the docs with Control::background (mention implicit size)https://codereview.qt-project.org/#/c/173805/
TextField::focusReasonShare the docs with Control::focusReason and TextArea::focusReasonhttps://codereview.qt-project.org/#/c/173808/
ToolBar
Brief descriptionToolBar does not make anything context sensitive, it's up to the user to put there whatever they wanthttps://codereview.qt-project.org/#/c/173810/
ToolBar::positionInconsistency: ApplicationWindow is a link, Page is not => make both linkshttps://codereview.qt-project.org/#/c/173810/
ToolButton
Brief descriptionToolButton: layout -> lookhttps://codereview.qt-project.org/#/c/175389/
Detailed descriptionThe screenshot is not clear at a glimpse that where is the ToolButton there.https://codereview.qt-project.org/#/c/175389/Could be helpful mention something that basically the whole API is inherited from AbstractButton.https://codereview.qt-project.org/#/c/175389/
ToolTip
Detailed descriptionThe first screenshot is missing the tooltip...https://codereview.qt-project.org/#/c/173292/
Attached properties
Tumbler
Detailed descriptionMake the GIF more visible, or add another at the tophttps://codereview.qt-project.org/#/c/173809/
Tumbler::delegateThe correct type is "Component", not "component"https://codereview.qt-project.org/#/c/173809/
Universal
Attached propertiesExamples and screenshots of them!https://codereview.qt-project.org/#/c/174621/
Attachments
Issue Links
- resulted from
-
QTCREATORBUG-16851 Qt Creator F1 help & Qt Quick Controls
- Closed
- resulted in
-
QTBUG-56868 Doc: some GIFs are hard to follow without seeing the touch point
- Open