Home > Mobile > Several views about QT, garbage at a B!
Several views about QT, garbage at a B!
Time:09-15
By using QT to do some demo these days, found that QT is a worse a b. 1, the view about QTableView pass of agent and so on, so no one can speak to understand, we are doing a little demo went to throw on the net, and more sadly "QT5 development and instance" and "Qt5.9 c + + development guide" speaks about this, is this the same book? 2, saw a small Demo, on QTCN said what compensation also provide the source code for horses, 3, QTableWidget is used to implement a list, I want to ask which brain-dead design, since the chosen can well why can't a hovering control? 4, QTreeWidget is used to implement a list to add 1000 rows of data, to about 20 seconds, the performance could be more slowly? I7 8 g, SSD! 5, QT one small problem as long as the basic no search will give a true answer is that half a bucket of water and 80% of sites are the same reproduced!
CodePudding user response:
1: have experience greatly, form the agent is also on the Internet before I see a mess, didn't understand until now, there are these two books, actually can throw out, too bad, I also bought, summarize the content of the inside is the Qt things complicated, you want to learn Qt, official documentation & gt; Independent thinking & gt; Network resources & gt; Access to the source code
2: there isn't much that, after all, whose time is not cheap, who is not willing to spend their time to help others
4: you should say is a QTableWidget? I used a few times this control, obviously the control load is very large, every table element is actually a window, one thousand rows of data is thousands of window at the same time, you can BuKa? 20 s one of the good, this is not a Qt pot, if you only need a simple display form, can use drawing events to draw out a form, the chart and Qt also have special libraries,
3, if there is no reserve the Qt interface, you can fully realize the form is a scroll bar panel + grid layout
5, do as you say, is not only a Qt has such problem, the whole country, but there were also some serious people, for example, Qt version is: https://me.csdn.net/column/u011012932 I read his blog articles, is good, maybe you can find what you want
CodePudding user response:
In addition to control such as the LineEdit to implement more troublesome, other controls I tend to be inherited from QWidget himself, in fact, a lot of things from the source will be much simpler, QWidget is a very easy to learn and many controls are inherited from QWidget, if I know what you want, of course is to realize it is easier to control yourself, just made wheels does have some trouble The following control besides the LineEdit and ComboBox, the rest are basically made by QWidget + event processing, such as the UI, color control and fine-tune controls
CodePudding user response:
There are three control with three parties control, without a word he make the wheels,
CodePudding user response:
While this question, I want to say, in fact, a lot of people do not ask questions, there is no meaning, especially the building is the whole environment in this way, Perhaps is afraid of problems too sexually explicit, is low, maybe don't want to state the problem, because may involve property, but a problem can be properly abstracting, itself is the ability of the questioner, when I was a student, the teacher said, take a look at a student asked problems knew that his master,
Post a link to the X - Y Problem, by the way, https://coolshell.cn/articles/10804.html
Stick a CSDN real example again, in the end he did not tell his final question How to use the code implementation enumerates all the combination of the characters? https://bbs.csdn.net/topics/397055105#post-412044160
Get to the point, detailed information about the Model/View and its design concept and the relationship between and XXXWidget, Qt's official help, and also has a lot on the Qt own examples,
Example QT_DIR \ SRC \ qtbase \ examples, widgets, itemviews The official documentation https://doc.qt.io/qt-5/model-view-programming.html
The building Lord suddenly come up so many questions, the ego thought, should be a solid foundation, first look at the document, from scratch, rather than ask easily, even if answers might because of their limited but cannot fully control problem, the original poster can be a engaged in C/C + + programmer for many years, but Qt is a new field, and Qt code number easily crush GCC compiler code number, they are not on an order of magnitude,