Place we want to go, dump
New Taipei
九份 old streetgoogle map
test lol :)
Keelung
Yilan
仁山植物園 Renshan Botanical Gardengoogle map
address: 269宜蘭縣冬山鄉新寮路500號
Yun Tseng changed a year agoView mode Like Bookmark
At the Beginning of a Project
We have four tools. CentralWiget which is locked, menuBar on the top, mainToolBar,and statusBar at below.
Layouts
Vertical Layout
物件是很多個row的
Horizontal Layout
物件是很多個column的
Yun Tseng changed 2 years agoView mode Like Bookmark
The QListWidget and QListView classes are both used to display a list of items, but they differ in how they handle the items.
QListWidget is a convenience class that provides a list view similar to the one provided by the QListView class, but with some additional functionality built in. It allows you to add items to the list, remove items from the list, and rearrange the items using drag-and-drop.
QListView is a more general-purpose class that provides a view onto a model that contains a list of items. It is more flexible than QListWidget, but requires more code to set up. It allows you to display a list of items from any model that implements the QAbstractItemModel interface, and you can customize the appearance of the items by implementing your own delegate.
Both QListWidget and QListView are part of the Model/View framework in Qt, which allows you to separate the data being displayed from the way it is presented to the user.
The ListWidget resembles more how a traditional listbox works.
That said, using a model ( ListView) allows for automatic updates to the model
Yun Tseng changed 2 years agoView mode Like Bookmark
Make your notes digital!
Why - The advantage of digital notes (compared to handed notes)
can be displayed on the internet.easy to sharethe importance of sharing
easy to
What - What is notion
Notion is a powerful tool for managing tasks, notes, and projects in one centralized location. Its versatility lies in its ability to create and customize databases, boards, calendars, and to-do lists, allowing users to manage their work and personal lives in one place. To get started with Notion, users can create a new account and begin creating pages, adding content, and organizing their information. Notion's drag-and-drop functionality makes it easy to move pages and information around, and users can customize their pages with a variety of templates and themes.
In summary, Notion is a versatile platform that allows users to create and manage webpages for a variety of purposes. Its drag-and-drop functionality, customizable templates, and centralized location make it a popular choice for individuals and teams looking to streamline their workflows and stay organized. Some useful resources for getting started with Notion include the Notion Introduction page, which provides an overview of the platform's features, and the Notion Help Center, which offers detailed instructions and troubleshooting advice.
Yun Tseng changed 2 years agoView mode Like Bookmark
參考網站
Mode
Command
Notes
Plain Text Editor
setTextFormat(PlainText)
Set text with setText(); text() returns plain text. Text attributes (e.g. colors) can be set, but plain text is always returned.
Yun Tseng changed 2 years agoView mode Like Bookmark
參考QPushButton is simply a button. QToolButton is part of a group of widgets in the QtWidgets module that operate on QActions: QMenu and QToolBar are other examples. As a result, QToolButton is much more complex under the hood than QPushButton.
A QToolButton should generally have an icon.
A QPushButton should always have text.
From Qt doc: http://doc.qt.io/qt-5/qtoolbutton.html#details
"A tool button is a special button that provides quick-access to specific commands or options. As opposed to a normal command button, a tool button usually doesn't show a text label, but shows an icon instead."
When i want a button in the GUI simple with only an icon, I use QToolButton. But when i want a classic button, i use QPushButton.
No big differences,
Yun Tseng changed 2 years agoView mode Like Bookmark
參考
the difference is that QPlainTextEdit is optimized for handling plain text, and can be used even with very large plain text files. Also the way text is formatted is simpler.
If you plan to support only plain texts, then QPlainTextEdit is the right choice.
Yun Tseng changed 2 years agoView mode Like Bookmark