PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 1128 - QObject.trUtf8() is not a static function
: QObject.trUtf8() is not a static function
Status: RESOLVED WONTFIX
Product: PySide
Classification: Unclassified
Component: QtCore
: HEAD
: Macintosh Mac OS
: P3 normal
Assigned To: Paulo Alcantara
:
:
:
  Show dependency treegraph
 
Reported: 2012-01-23 11:40 EET by Daniele Esposti
Modified: 2012-01-26 21:14 EET (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniele Esposti 2012-01-23 11:40:24 EET
QObject.trUtf8() is not a static function as defined by official Qt
documentation
Comment 1 Paulo Alcantara 2012-01-26 21:14:05 EET
Hi Daniele,

Even in PyQt there is no such static version of QObject.trUtf8() function. This
is why when invoking either QObject.tr() or QObject.trUtf8() they need to give
their object name (for e.g., the string constant "QObject") to the first
argument of QCoreApplication.instance().translate(), which is the context upon
which we're leading with. So there's no way to make neither QObject.tr() nor
QObject.trUtf8() a static function (without a context to be given to the
QCoreApplication.instance().translate() function).

Anyway, thanks for the report.

Marking this bug as WONTFIX for now.