Qt Setwindowicon

It is possible that the program could appear in the application dock area before the function call, in which case a default icon will appear during the bouncing animation. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. tested on Windows 7, Windows 10,MacOSX 10. Ceci est la version imprimable de Programmation Qt. 2 下使用setWindowIcon 设置程序里 对话框的小图标, 在win7下测试可以正常显示, 但是在win10平板上无法正常显示,有木有童鞋知道什么原因?. This function was introduced in Qt 4. 上位机介绍 最近有个接了一个小型项目,内容很简单,就是解析北斗gps的串口数据然后输出经纬度,但接过来觉得太简单,就发挥了主观能动性,增加. 11 Wh) it will take about 1 hour 45 mins to completely charge the battery from nil. setWindowIcon(QtGui. If you are looking for information about Qt related issue — register and post your question. Here is very simple example: Notice that you are not required to provide an icon file (*. The setGeometry() does two things: it locates the window on the screen and sets it size. Stack Exchange Network. 在使用QtCreator开发图像处理程序的时候想加入Opencv库来处理图形,添加头文件,需要编辑工程文件夹下的. QStyle subclasses that emulate the styles of the different platforms supported by Qt ( PySide. 0 and qt setWindowIcon Command. ** Licensees holding valid commercial Qt licenses may use this file in: 11 (QIcon windowIcon READ windowIcon WRITE setWindowIcon NOTIFY windowIconChanged. Qt import Qt, QSize. Calculatrice [Qt] × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié. Here are the examples of the python api PyQt5. The following are code examples for showing how to use PyQt5. Notice now that to reference various aspects, we use "self. 7 volts can output 1. directory images can do it like this /images/icon. QGuiApplication::setWindowIcon does not change the dock icon on mac. Button Function and Custom Event- PyQt: In this article, we are going to study about few of button functions and, we’ll design some custom events. 给Qt应用程序添加图标文件ico setWindowIcon 1:通过qmake生成makefile实现过程: (1) 找到一张图片. You can vote up the examples you like or vote down the ones you don't like. png? for the resource file i've found that i can create it by adding it to the project directly by file|new file but how ill specify the resource file if it is added to the current project? for setting the icon application icon i don. argv参数是一个来自命令行的参数列表, # Python脚本可以在shell中运行。这是我们用来控制我们应用启动的一种方法。. 0 do not display a small icon on their system menus by default. First, we need to consider where to put this. For Python, my GUI library of choice is the Python binding for Qt, PyQt. QT tutorial. What do you think? Is there anything you thing I could change/improve in terms of code or visually (font,. Setting the Application Icon on Mac OS X The application icon, typically displayed in the application dock area, is set by calling QWidget::setWindowIcon () on a top-level widget. 给Qt应用程序添加图标文件ico setWindowIcon 1:通过qmake生成makefile实现过程: (1) 找到一张图片. Kate y Qt Creator qmake, gestión de proyectos Qt designer,diseñador de interfaces Qt assistant, visor de documentación Otras Herramientas Qt linguist, traducción Cmake, alternativa más flexible y potente a qmake Otros IDEs: Netbeans, Eclipse ejem Visual Studio Salvador Alemany Garrido– Introducción a Qt. Documentation contributions included herein are the copyrights of their respective owners. × Attention, ce sujet est très ancien. Skip to content. QtWidgets import QMainWindow, QApplication, QPushButton, QDesktopWidget. Windows already allow such feature and no need of additional efforts. txt) or read online for free. It also doesn't set the default icon in window title bars. Hello anybody, I'am using Fedora Core 5 with KDE-4 I'am also using QT-4. QWidget class. Simple VTK, QT, and QVTKWidget Problem. Yes, > Thus what I would still like to achieve is the icon being set within the > source code in a system-independent way. In this post I'll describe how to build a static version of Qt under Linux (Ubuntu flavor) and I will use Qt 5. QT's documentation for QWindow::setWindowIcon should be what you need. QtGui import QIcon. macOS users expect to have a menu bar at the top of the screen and Qt honors this. setGeometry(300, 300, 300, 220) self. By voting up you can indicate which examples are most useful and appropriate. A cursor is a small icon that indicates the position of the mouse pointer. This tutorial will guide you through the process of using PyQt to build a simple but useful rich-text editor. Pythonを使ってちょっとしたGUIアプリを作るときに,よくPyQtで書いてそれをPyInstallerでexeにパッケージングしています. その時にお気に入りのアプリはアイコンもつけておきたいので,その方法についてまとめます. 対応し. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3. QApplication specializes QGuiApplication with some functionality needed for QWidget-based applications. ©2019 The Qt Company Ltd. For any GUI application using Qt, there is precisely one QGuiApplication object no matter whether the application has 0, 1, 2 or more windows at any given time. Example, for a charger rating of 5 volts, 0. Requests a QStyle object for style from the QStyleFactory. It handles widget specific initialization, finalization, and provides session management. Bu uygulama ile arayüzümü tasarlayabilir, pencere araçlarına sinyal atayabilir ve resim gibi dosyalarımızı resource özelliği ile uygulamaya gömebiliriz. Historically it has been hard to find good C++ programmers, and even harder to find experienced Qt developers. QT QProgressBar QProgressDialog 模态,位置设置,无边框,进度条样式 一 关于模态设置 QProgressDialog可以设置模态(需要在new的时候传入parent),QProgressBar设置不好: 只有dialog可以设置模态,widget不能设置模态(QPr. Including additional data. 2 下使用setWindowIcon 设置程序里 对话框的小图标, 在win7下测试可以正常显示, 但是在win10平板上无法正常显示,有木有童鞋知道什么原因? 论坛 QT 自己写好的应用程序不显示图标. You can add new menus to the main window’s menu bar by calling menuBar() , which returns the QMenuBar for the window, and then add a menu with addMenu(). This requires setting up a Qt Account (or. They are extracted from open source Python projects. Python GUI How to Create Paint Application in PyQt5 – In this article, we will learn How to Create Paint Application in PyQt5 that allows us to draw lines on a canvas with different brush sizes and colors. setWindowModified (self, bool) 這種方法也是一個Qt槽與C + +的簽名void setWindowModified(bool)。. 2 下使用setWindowIcon 设置程序里 对话框的小图标, 在win7下测试可以正常显示, 但是在win10平板上无法正常显示,有木有童鞋知道什么原因?. For non-GUI Qt applications, use QCoreApplication instead, which doesn't depend on the QtGui library. Python is widely being used by young people on the Raspberry Pi, for example, so Qt For Python offers the potential for a new generation of Qt developers. splitDockWidget(after, dockwidget, orientation)¶. 在QT帮助那里 查找 :Setting the Application Icon The application icon, typically displayed in the top-left corner of an application's top-level windows, is set by calling the QWindow::setWindowIcon() method. 2中 ico文件是256 * 256。. Opening the file with a standard Python open is also useful -- if this works then you know it can open the file, it's in the right place, etc. So once again Simon, thanks for your help!. Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/widgets/kernel/qwidget. The smaller zoom (AddBarsScaleMode) adds black bars at the left/right or top/bottom to make all of the image visible (default). Qt provides support for the Global Menu Bar with QMenuBar. I've always enjoyed building beautiful Graphical User Interfaces (GUIs) to the back-end computations, number-crunching and algorithms of my programs. ©2019 The Qt Company Ltd. Qt Resources Almost any application has a few associated resources, term that in this context is used to identify external files containing non mutable information used by the application. rc文件。新建一个 博文 来自: qq_37354286的博客. The PyQt4 series began with PyQt 4. 第1章 第一个c程序第2章 c语言基础第3章 变量和数据类型第4章 顺序结构程序设计第5章 条件结构程序设计第6章. × Attention, ce sujet est très ancien. The System Tray Icon example shows how to add an icon with a menu and popup messages to a desktop environment's system tray. To update a Qt app’s taskbar icon you need to create a QIcon object and assign it using setWindowIcon of the QApplication. During runtime the dock icon can be changed by calling QWidget::setWindowIcon() on the main window. setWindowIcon. 在QT帮助那里 查找 :Setting the Application Icon The application icon, typically displayed in the top-left corner of an application's top-level windows, is set by calling the QWindow::setWindowIcon() method. setWindowIcon(QIcon('image. List of All Members for QLCDNumber. com Below are links for the courses I have finished so far. __init__ (self, QWidget parent = None, Qt. 10 steps for Getting started GUI`s with python By Volodymyr Kirichinets IntroductionPython programming language is used as a basis for a lot of tools and packages for creating a flexible, usable and reliable desktop application with Graphical User Interface - GUI. I wanted to add that the script may not be executed in the script directory. A main window provides a framework for building an application's user interface. It does show if I make a plain Qt GUI application, but not if I make a Qt Quick (QML) application. Foundations of Qt Development\Chapter03\messagebox\main. setWindowIcon(QIcon('web. setGeometry(300, 300, 300, 220) self. ico; Add your icon file to a QT resource file (. WA_MacBrushedMetal attribute takes precedence over this property. The following are code examples for showing how to use PyQt4. x系です 情報,プログラムの正確さには細心の注意を払っていますが,それらの正確性は保証できません.間違いがありましたら指摘してくださるとありがたいです. setWindowModality (self, Qt. Qt Resources Almost any application has a few associated resources, term that in this context is used to identify external files containing non mutable information used by the application. 3 and Python 2. button() == Qt. WA_MacBrushedMetal attribute takes precedence over this property. QWidget __qt_cast_to_QPaintDevice, __qt_signalInitialization, acceptDrops, accessibleDescription, accessibleName. pdf), Text File (. h" 1 # 27 "kernel\\/qaction. PythonでGUIを作成できるPyQt5について,使い方を説明していきます. 注意 Pythonの基本を知っていることを前提としています Pythonは3. rc文件并把它放到你的QT工程项目的. macOS users expect to have a menu bar at the top of the screen and Qt honors this. Key_Dead_Voiced_Sound : Search for all occurrences. The following are code examples for showing how to use PyQt5. It is possible that the program could appear in the application dock area before the function call, in which case a default icon will appear during the bouncing animation. Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/widgets/kernel/qwidget. This is a hint to the window manager in case it needs to display additional content like popups, dialogs, status bars, or similar in relation to the window. First programs in Qt4 In this part of the Qt4 C++ programming tutorial, we create our first programs. It may have many parsing errors. setFixedSize move setWindowIcon. THE BOOK of. Apple's Mac OS X uses a Unix-like OS as a base, and Microsoft's Windows sits on top of the original MS DOS. setWindowIcon (self, QIcon icon) QWidget. setWindowTitle('Icon') self. However I am unable to get it to work. Clone via HTTPS Clone with Git or checkout with SVN using the repository’s web address. 0 and Ubuntu 16. Qt项目在打包发布之后都需要有个个性的程序图标和窗口图标,这样会使程序更加美观大方,下面我们分别来看如何给程序和窗口分别添加图标. In short, I started by creating a basic Qt/QML application from their new project templates. For React NodeGUI, visit: https://github. hi axel, i'm having trouble with pyqt5. addDockWidgetFactory:. [Qt] probleme avec la méthode setWindowIcon × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié. ico的,用来给程序添加图标,一种是. You can vote up the examples you like or vote down the ones you don't like. This is the complete list of members for QLCDNumber, including inherited members. This tutorial will guide you through the process of using PyQt to build a simple but useful rich-text editor. Using a Python recipe? Installing ActivePython is the easiest way to run your project. QT's documentation for QWindow::setWindowIcon should be what you need. QTreeWidget Member List This is the complete list of members for QTreeWidget, including all inherited members. png')) All three methods have been inherited from the QtGui. The Qt class QToolButton is an example of such a widget. You can vote up the examples you like or vote down the ones you don't like. Bu uygulama ile arayüzümü tasarlayabilir, pencere araçlarına sinyal atayabilir ve resim gibi dosyalarımızı resource özelliği ile uygulamaya gömebiliriz. Tutorial de introducción a la programación de interfaces gráficas de usuario (GUI) utilizando en framework Qt 5. QTextEdit implements Canvas. Qt import Qt, QSize. 10 steps for Getting started GUI`s with python By Volodymyr Kirichinets IntroductionPython programming language is used as a basis for a lot of tools and packages for creating a flexible, usable and reliable desktop application with Graphical User Interface - GUI. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. They are extracted from open source Python projects. It locates the window on the screen and sets the size of the window. QIcon taken from open source projects. Simple VTK, QT, and QVTKWidget Problem. Setting this back to false will remove these restrictions. They are extracted from open source Python projects. WindowFlags type) QWidget. Requests a QStyle object for style from the QStyleFactory. ico Add your icon file to a QT resource file (. Clone via HTTPS Clone with Git or checkout with SVN using the repository's web address. Hello, I want to have a simple image viewer. In this PyQT tutorial, we're going to cover drop down buttons as well as Qt Window styles, which allow you to quickly change the general look of your window. public class MainWindow extends com. 8 does not resolve the issue I will be contacting Qt with details of the crash. txt) or read online for free. 0 and qt setWindowIcon Command. So once again Simon, thanks for your help!. First, we need to consider where to put this. The first two parameters are the x and y positions of the window. pour cela, il faut ouvrir le dossier debug ou release du projet en fonction de ta configuration, ajouter les dll, verifier que l'image est présente, et que le nom est exacte à la majuscule près, puis ouvrir le fichier en cliquant sur le. QString QInputDialog. Constructs a new input dialog with the given parent and window flags. They are extracted from open source Python projects. Deepin Tool Kit is the toolkit used to built deepin style Apps. To update a Qt app's taskbar icon you need to create a QIcon object and assign it using setWindowIcon of the QApplication. setWindowIcon (self, QIcon icon) QWidget. It doesn't seem to work in Windows 7 on setting the icon in taskbar, either. In this part of the PyQt5 tutorial we learn some basic functionality. I have tried removing the data-repository mentioned in the log and it didn't help. Here are the examples of the python api ctypes. This property defines. 10 steps for Getting started GUI`s with python By Volodymyr Kirichinets IntroductionPython programming language is used as a basis for a lot of tools and packages for creating a flexible, usable and reliable desktop application with Graphical User Interface - GUI. 在QT帮助那里 查找 :Setting the Application Icon The application icon, typically displayed in the top-left corner of an application's top-level windows, is set by calling the QWindow::setWindowIcon() method. For non-GUI Qt applications, use QCoreApplication instead, as it does not depend on the Qt GUI module. GPL included in the ** packaging of this file. Over 90 percent of questions asked here gets answered. splitDockWidget(after, dockwidget, orientation)¶. LeftButton:. setWindowTitle('Icon') self. Stack Exchange Network. All gists Back to GitHub. QGuiApplication::setWindowIcon does not change the dock icon on mac. For any GUI application using Qt, there is precisely one QGuiApplication object no matter whether the application has 0, 1, 2 or more windows at any given time. Qt has QMainWindow and its related classes for main window management. QWindowsStyle, PySide. QMainWindow, as well as any methods we write ourselves in this class. The smaller zoom (AddBarsScaleMode) adds black bars at the left/right or top/bottom to make all of the image visible (default). In this post I'll describe how to build a static version of Qt under Linux (Ubuntu flavor) and I will use Qt 5. In theory it seems like there should be some way that Qt would magically know what theme you're using and where the icons are stored, but it sure don't work for me neither. A cursor is a small icon that indicates the position of the mouse pointer. 5 and up will now work around this by pulling the toolbars out and back into the regular toolbar and vice versa when you swap out. In addition, argc must be greater than zero and argv must contain at least one valid character string. List of All Members for QTableView. 那么多功能,其实就一个类就搞定了,那就是QSystemTrayIcon 头文件(主要 1. If i do in designer nothing happens. To update a Qt app's taskbar icon you need to create a QIcon object and assign it using setWindowIcon of the QApplication. Qt Resources Almost any application has a few associated resources, term that in this context is used to identify external files containing non mutable information used by the application. 3 and Python 2. backend_bases import RendererBase, GraphicsContextBase, \ FigureManagerBase, FigureCanvasBase, NavigationToolbar2, IdleEvent, cursors from matplotlib. For these widgets, PySide. OK, I Understand. However I am unable to get it to work. Qt's primary feature is its rich set of widgets that provide standard GUI functionality. pdf), Text File (. qt: Remove macOS special case for icon While it is still true that on macOS, the icon from the app bundle is used, this is not true for our pseudo-bundle. ico Add your icon file to a QT resource file (. Unfortunately, there is no platform-independent way of setting the application icon that appears on the desktop. 04 64-Bit for that matter. setWindowIcon(QtGui. For non-GUI Qt applications, use QCoreApplication instead, as it does not depend on the Qt GUI module. Next up in this tutorial series, we're going to be talking about how to add a menubar to our application. × Attention, ce sujet est très ancien. They are extracted from open source Python projects. setWindowModality (self, Qt. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. If you write your own widgets that have an option to set a small pixmap, consider allowing a QIcon to be set for that pixmap. You can add new menus to the main window's menu bar by calling menuBar() , which returns the QMenuBar for the window, and then add a menu with addMenu(). backend_bases import RendererBase, GraphicsContextBase, \ FigureManagerBase, FigureCanvasBase, NavigationToolbar2, IdleEvent, cursors from matplotlib. Stack Exchange Network. For example, on a UNIX-like system which. Constructs a new input dialog with the given parent and window flags. Qt for Python offers the possibility to expand the developer base of Qt. QtCore import Qt from PyQt5. This function was introduced in Qt 4. It doesn't seem to be necessary to call app. In this post I'll describe how to build a static version of Qt under Linux (Ubuntu flavor) and I will use Qt 5. That being said I'll be compiling the Qt 5. setGeometry(300, 300, 300, 220) self. The smaller zoom (AddBarsScaleMode) adds black bars at the left/right or top/bottom to make all of the image visible (default). Opening the file with a standard Python open is also useful -- if this works then you know it can open the file, it's in the right place, etc. QMainWindow has its own layout to which you can add QToolBars, QDockWidgets, a QMenuBar, and a QStatusBar. We use cookies for various purposes including analytics. 在使用QtCreator开发图像处理程序的时候想加入Opencv库来处理图形,添加头文件,需要编辑工程文件夹下的. setWindowIcon(QtGui. Qt Centre is a community site devoted to programming in C++ using the Qt framework. setFixedSize move setWindowIcon. multimedia, it's not in the instalation and can't find any information on how to make it work, could you help me? what i need to do is really simple, play a video file from my computer. WA_MacBrushedMetal attribute takes precedence over this property. Setting the Application Icon on Mac OS X The application icon, typically displayed in the application dock area, is set by calling QWidget::setWindowIcon () on a top-level widget. setWindowIcon() set the title bar and icon respectively. Here is a hello-world example of how to achieve this (it works on Mac, I didn't test any other platform):. , the battery at a voltage of 3. My primary goal has always been to allow Python and Qt to work together in a way that feels natural to Python programmers, while allowing them to do anything they want in Python that can be done in C++. However I cannot mangage to display any icon in the main window's title. x系です 情報,プログラムの正確さには細心の注意を払っていますが,それらの正確性は保証できません.間違いがありましたら指摘してくださるとありがたいです. Despite the fact that I'm unable to see Qt terminal working, here is a tiny feature request - to add some gnuplot icon. Qt for Python offers the possibility to expand the developer base of Qt. #569 Add icon to Qt terminal Despite the fact that I'm unable to see Qt terminal working, here is a tiny feature request - to add some gnuplot icon. macOS users expect to have a menu bar at the top of the screen and Qt honors this. In this page we will show how to build a simple Qt Dialog with Qt Designer, Qt's official tool for designing interfaces, then convert it to python code, then use it inside FreeCAD. LeftButton:. Here are the examples of the python api PyQt5. setWindowTitle() and PySide. For these widgets, PySide. It also doesn't set the default icon in window title bars. png")); To display an icon, we use the setWindowIcon() method and a QIcon class. For non-GUI Qt applications, use QCoreApplication instead, as it does not depend on the Qt GUI module. A widget without a parent widget is always an independent window (top-level widget). For any GUI application that uses Qt, there is precisely one QApplication object, no matter whether the application has 0, 1, 2 or more windows at any time. ico file as Windows resource. Qt Resources Almost any application has a few associated resources, term that in this context is used to identify external files containing non mutable information used by the application. I still have 2 problems: 1* How do I detect a right mouse button click on a button? As you can see I already have a left. That being said I'll be compiling the Qt 5. You can vote up the examples you like or vote down the ones you don't like. Macro Fonts Win10 PYMP Description This little macro is dedicate to users of Windows 10. before I imported QT, the Windows function i used could correctly decide which image in the. Reply Delete. On Windows 95 and Windows NT 4. QWidget __qt_cast_to_QPaintDevice, __qt_signalInitialization, acceptDrops, accessibleDescription, accessibleName. You can add new menus to the main window's menu bar by calling menuBar() , which returns the QMenuBar for the window, and then add a menu with addMenu(). ico file?" "Is Qt reading it correctly?" If just opening the file doesn't work, it massively narrows down the problem. I still have 2 problems: 1* How do I detect a right mouse button click on a button? As you can see I already have a left. QWidget class. All the "Qt magic" (like invoking moc and uic) is made manually, so doing wrong can lead to unneeded errors. ©2015 The Qt Company Ltd. Changes the size, position, and Z order of a child, pop-up, or top-level window. 5 on Windows Date: 2007 -01-25 | Tags: pyqt , python | 24 Comments Update 1/10/2008: PyQt has made the install process a lot simpler because it has bundled everything you need in one installer including QT 4. QT 设置应用程序图标和可执行程序图标(另有setWindowTitle和setWindowIcon) 保存改名为 myapp. setWindowModified (self, bool) This method is also a Qt slot with the C++ signature void setWindowModified(bool). QMacStyle, PySide. WindowFlags type) QWidget. It doesn't seem to be necessary to call app. com | © Demo Source and Support. To update a Qt app’s taskbar icon you need to create a QIcon object and assign it using setWindowIcon of the QApplication. Jika Anda sedang membuka Firefox, lihatlah. ) for this function to work and you can use any (standard) image file type …. Enter search terms or a module, class or function name. 0 and qt setWindowIcon Command. QtCore import Qt from PyQt5. It is possible that the program could appear in the application dock area before the function call, in which case a default icon will appear during the bouncing animation. List of All Members for QTableView. WindowModality windowModality) QWidget. x when you want to port them to KDE Frameworks 5. QWidget class. Property Documentation contentOrientation: Qt::ScreenOrientation. First programs in PyQt5. This is a regression from Qt4. You can vote up the examples you like or vote down the ones you don't like. QT Introduction - Free download as PDF File (. However I cannot mangage to display any icon in the main window's title. Here is a hello-world example of how to achieve this (it works on Mac, I didn't test any other platform):. In theory it seems like there should be some way that Qt would magically know what theme you're using and where the icons are stored, but it sure don't work for me neither. Hi All, Wondering if anyone can help, Simple Qt Application: |from PyQt4 import QtGui, QtCore import sys, atexit class. Reason: Auto-imported from ExpressionEngine. All gists Back to GitHub. The sizeHint code will return what QT thinks is the best side for your button. QtWidgets import (QToolTip, QPushButton, QApplication, QWidget, QLabel) from Py. H EE TT H BO OO OK K B o ff o. It was fixed in Qt 5. The fact-checkers, whose work is more and more important for those who prefer facts over lies, police the line between fact and falsehood on a day-to-day basis, and do a great job. Today, my small contribution is to pass along a very good overview that reflects on one of Trump’s favorite overarching falsehoods. Namely: Trump describes an America in which everything was going down the tubes under  Obama, which is why we needed Trump to make America great again. And he claims that this project has come to fruition, with America setting records for prosperity under his leadership and guidance. “Obama bad; Trump good” is pretty much his analysis in all areas and measurement of U.S. activity, especially economically. Even if this were true, it would reflect poorly on Trump’s character, but it has the added problem of being false, a big lie made up of many small ones. Personally, I don’t assume that all economic measurements directly reflect the leadership of whoever occupies the Oval Office, nor am I smart enough to figure out what causes what in the economy. But the idea that presidents get the credit or the blame for the economy during their tenure is a political fact of life. Trump, in his adorable, immodest mendacity, not only claims credit for everything good that happens in the economy, but tells people, literally and specifically, that they have to vote for him even if they hate him, because without his guidance, their 401(k) accounts “will go down the tubes.” That would be offensive even if it were true, but it is utterly false. The stock market has been on a 10-year run of steady gains that began in 2009, the year Barack Obama was inaugurated. But why would anyone care about that? It’s only an unarguable, stubborn fact. Still, speaking of facts, there are so many measurements and indicators of how the economy is doing, that those not committed to an honest investigation can find evidence for whatever they want to believe. Trump and his most committed followers want to believe that everything was terrible under Barack Obama and great under Trump. That’s baloney. Anyone who believes that believes something false. And a series of charts and graphs published Monday in the Washington Post and explained by Economics Correspondent Heather Long provides the data that tells the tale. The details are complicated. Click through to the link above and you’ll learn much. But the overview is pretty simply this: The U.S. economy had a major meltdown in the last year of the George W. Bush presidency. Again, I’m not smart enough to know how much of this was Bush’s “fault.” But he had been in office for six years when the trouble started. So, if it’s ever reasonable to hold a president accountable for the performance of the economy, the timeline is bad for Bush. GDP growth went negative. Job growth fell sharply and then went negative. Median household income shrank. The Dow Jones Industrial Average dropped by more than 5,000 points! U.S. manufacturing output plunged, as did average home values, as did average hourly wages, as did measures of consumer confidence and most other indicators of economic health. (Backup for that is contained in the Post piece I linked to above.) Barack Obama inherited that mess of falling numbers, which continued during his first year in office, 2009, as he put in place policies designed to turn it around. By 2010, Obama’s second year, pretty much all of the negative numbers had turned positive. By the time Obama was up for reelection in 2012, all of them were headed in the right direction, which is certainly among the reasons voters gave him a second term by a solid (not landslide) margin. Basically, all of those good numbers continued throughout the second Obama term. The U.S. GDP, probably the single best measure of how the economy is doing, grew by 2.9 percent in 2015, which was Obama’s seventh year in office and was the best GDP growth number since before the crash of the late Bush years. GDP growth slowed to 1.6 percent in 2016, which may have been among the indicators that supported Trump’s campaign-year argument that everything was going to hell and only he could fix it. During the first year of Trump, GDP growth grew to 2.4 percent, which is decent but not great and anyway, a reasonable person would acknowledge that — to the degree that economic performance is to the credit or blame of the president — the performance in the first year of a new president is a mixture of the old and new policies. In Trump’s second year, 2018, the GDP grew 2.9 percent, equaling Obama’s best year, and so far in 2019, the growth rate has fallen to 2.1 percent, a mediocre number and a decline for which Trump presumably accepts no responsibility and blames either Nancy Pelosi, Ilhan Omar or, if he can swing it, Barack Obama. I suppose it’s natural for a president to want to take credit for everything good that happens on his (or someday her) watch, but not the blame for anything bad. Trump is more blatant about this than most. If we judge by his bad but remarkably steady approval ratings (today, according to the average maintained by 538.com, it’s 41.9 approval/ 53.7 disapproval) the pretty-good economy is not winning him new supporters, nor is his constant exaggeration of his accomplishments costing him many old ones). I already offered it above, but the full Washington Post workup of these numbers, and commentary/explanation by economics correspondent Heather Long, are here. On a related matter, if you care about what used to be called fiscal conservatism, which is the belief that federal debt and deficit matter, here’s a New York Times analysis, based on Congressional Budget Office data, suggesting that the annual budget deficit (that’s the amount the government borrows every year reflecting that amount by which federal spending exceeds revenues) which fell steadily during the Obama years, from a peak of $1.4 trillion at the beginning of the Obama administration, to $585 billion in 2016 (Obama’s last year in office), will be back up to $960 billion this fiscal year, and back over $1 trillion in 2020. (Here’s the New York Times piece detailing those numbers.) Trump is currently floating various tax cuts for the rich and the poor that will presumably worsen those projections, if passed. As the Times piece reported: