Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. [Solved](PySide) in QtCore.Property(unicode, name, notify=changed), error with unicode
QtWS25 Last Chance

[Solved](PySide) in QtCore.Property(unicode, name, notify=changed), error with unicode

Scheduled Pinned Locked Moved Language Bindings
3 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dmcr
    wrote on last edited by
    #1

    Hello,

    Following this "tutorial":http://qt-project.org/wiki/Selectable-list-of-Python-objects-in-QML i have this error :
    (in ThingWrapper for ex) in line : @ name = QtCore.Property(unicode, name, notify=changed)@
    NameError: name 'unicode' is not defined
    Does someone have any clue ?

    Thanks

    (I am using python 3.3 and PySide 1.2.2)

    dmcr

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, unicode of Python2 is equivalent to str in Python3, you could try with that.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dmcr
        wrote on last edited by
        #3

        It works (an helps :) ), thank uou.

        dmcr

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved