works in Rectangle but not in Dialog at the first run
-
I am writing an application with the main window and some pop out dialogs. there is one dialog that has a model content created by python loaded in it. When I run the application at the first time. that dialog shows improperly with all the mess. When I rerun the application for the second time, third time and so on, it just works perfectly. the mess only happens at the first time to run the program. However, when I use the rectangle instead of the dialog for my application. it just works fine for every time. but I really think the dialog looks better and professional in my application. what happens for this situation? what's the difference between dialog and rectangle? any idea about it? Thanks in advance
-
-
@p3c0
here is the code for that dialogimport QtQuick 2.3 import QtQuick.Controls 1.2 import QtQuick.Controls.Styles 1.2 import QtQuick.Layouts 1.1 import QtQuick.Window 2.0 import QtQuick.Dialogs 1.2 Dialog { id: base; title:"Full Settings" width: 800 height: 600 visible:false TabView { anchors.fill: parent anchors.margins: 8 Tab { title: "General" GeneralTab{ } } Tab { title: "Infill" InfillTab{ } } Tab { title: "Speed" SpeedTab{ } } Tab { title: "Support" SupportTab{ } } Tab { title: "Build Plate" BuildplateTab{ } } Tab { title: "Retractions" RetractionTab{ } } Tab { title: "Cooling" CoolingTab{ } } Tab { title: "More.." MoreTab{ } } } } -
@Ying Where is the
ListViewloaded ?but I can use the scroll bar to drag up the list.
Scrollbars of the ListView ? Is it that blank data is filled for initial rows ?
-
@Ying Well sorry, unfortunately its difficult to say about what might be the cause. Its really strange that it works after the first time inside
Dialog. Does this model depends upon some data which is only available after first time ? But then it should have also affected theItem. If possible can you post a minimal example which can reproduce this problem ?