alex_lipOct. 31, 2017, 6:39 a.m.
Скролинг listview внутри ColumnLayout
Есть ColumnLayout - внутри которого находится Rectangle в котором сидит ListView.
Если я жестко задаю размеры Rectangle - ListView нормально скроллится. А если я пытаюсь Rectangle растянуть на всю колонку,
то ListView - не скроллится. Куда смотреть?
Скроллится -
ColumnLayout{ id:col_list anchors.top: row_bar.bottom anchors.left: parent.left anchors.right: parent.right Rectangle { id: row_list width: 400; height: 240Не скроллится -
ColumnLayout{ id:col_list anchors.top: row_bar.bottom anchors.left: parent.left anchors.right: parent.right Rectangle { id: row_list Layout.fillWidth: true Layout.fillHeight: true Layout.preferredHeight: 1000 Layout.minimumWidth: 50 Layout.maximumWidth: 1300 Layout.maximumHeight: 1300
We recommend hosting TIMEWEB
Stable hosting, on which the social network EVILEG is located. For projects on Django we recommend VDS hosting.Do you like it? Share on social networks!
d
- dsfs
- April 26, 2024, 11:56 a.m.
C ++ - Test 004. Pointers, Arrays and Loops
- Result:80points,
- Rating points4
d
- dsfs
- April 26, 2024, 11:35 a.m.
C++ - Test 001. The first program and data types
- Result:73points,
- Rating points1
Last comments
Qt Linux - Lesson 001. Autorun Qt application under Linux как сделать автозапуск для флэтпака, который не даёт создавать файлы в ~/.config - вот это вопрос ))
АК
Qt WinAPI - Lesson 007. Working with ICMP Ping in Qt Без строки #include <QRegularExpressionValidator> в заголовочном файле не работает валидатор.
Анатолий КононенкоFeb. 5, 2024, 9:50 a.m.
EVADec. 25, 2023, 6:30 p.m.
Boost - static linking in CMake project under Windows Сделал всё по-как у вас, но выдаёт ошибку [build] LINK : fatal error LNK1104: не удается открыть файл "libboost_locale-vc142-mt-gd-x64-1_74.lib" Хоть убей, не могу понять в чём дел…
Qt/C++ - Lesson 056. Connecting the Boost library in Qt for MinGW and MSVC compilers Для решения твой проблемы добавь в файл .pro строчку "LIBS += -lws2_32" она решит проблему , лично мне помогло.
Now discuss on the forum
добавить qlineseries в функции Всем доброго времени суток! Товарищи, помогите, юному падавану обуздать QChart, уже неделю пытаюсь сам решить проблему, в интернете подходящих статей не нашел:) Проблема в следующем:…
Best Indian Food Restaurant In Cincinnati OH Ready to embark on a gastronomic journey like no other? Join us at App india restaurant and discover why we're renowned as the Best Indian Food Restaurant In Cincinnati OH . Whether y…
Evgenii LegotckoiMay 2, 2024, 9:07 p.m.
IscanderCheApril 30, 2024, 11:22 a.m.
А вы пробовали без Rectangle а сразу в Column засунуть ListView?
Вопрос закрыт. Указал в явном виде значения размеров Listview относительно id родителя. Относительно Layout такое почему-то не прокатывает