This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2023-10-22 10:26:29,064 [info] default: First Info message | |
2023-10-22 10:26:29,064 [warning] default: First Warning message | |
2023-10-22 10:26:29,064 [critical] default: First Critical message | |
2023-10-22 10:26:29,064 [fatal] default: First Fatal message | |
2023-10-22 10:26:30,402 [info] app: Info message with category | |
2023-10-22 10:26:30,407 [warning] app: Warning message with category | |
2023-10-22 10:26:30,407 [critical] app: Critical message with category | |
2023-10-22 10:26:30,407 [debug] test: Debug message with category | |
2023-10-22 10:26:30,407 [info] test: Info message with category | |
2023-10-22 10:26:30,407 [warning] test: Warning message with category |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/spirit/include/qi.hpp> | |
using namespace boost::spirit::qi; | |
// Wrapping strings with the `qi::string()` leads to the problem of bool attributes interpreting by `qi::phrase_parse()`. | |
// Don't use the `string()` wrapper when you tries to interpret bool attributes. | |
int main() | |
{ | |
std::string entries[] = {"log on", "log off", "log bad"}; // test cases | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PySide6.QtCore import QCoreApplication, QObject, Slot | |
from PySide6.QtQml import QJSEngine | |
# Define class with invokable methods | |
class MyObject(QObject): | |
def __init__(self, parent = None): | |
super().__init__(parent) | |
@Slot() |