Results 1 to 3 of 3

Thread: Qt namespace flags: hexadecimal versus decimal

  1. #1
    Join Date
    Jun 2014
    Posts
    98
    Thanks
    43
    Thanked 4 Times in 4 Posts
    Platforms
    Windows

    Question Qt namespace flags: hexadecimal versus decimal

    If you look at the Qt namespace:
    http://qt-project.org/doc/qt-4.8/qt.html#details

    Some flag enumerations depict the flags as hexadecimals (e.g., dropActions), while others are represented in decimal notation (e.g., itemFlags). Is this a substantive difference, or an arbitrary difference in convention of how they are enumerated?

    I work in PyQt/PySide and it seems there is no difference.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt namespace flags: hexadecimal versus decimal

    There is no difference.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    neuronet (13th October 2014)

  4. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt namespace flags: hexadecimal versus decimal

    The enums given as hexadecimal are typically intended to be used as flags in combination and the hex representation makes the bits involved more obvious. Ultimately though a number is just a number.

  5. The following user says thank you to ChrisW67 for this useful post:

    neuronet (13th October 2014)

Similar Threads

  1. QMAKE FLAGS in qmake.conf for solaris-cc-64 uses old flags
    By qmake_query in forum Installation and Deployment
    Replies: 0
    Last Post: 16th October 2012, 10:11
  2. QLineEdit for editing hexadecimal and decimal numbers
    By schall_l in forum Qt Programming
    Replies: 2
    Last Post: 28th April 2012, 12:38
  3. Conversion to hexadecimal
    By vidya.p in forum Newbie
    Replies: 3
    Last Post: 13th December 2011, 10:25
  4. how to process hexadecimal
    By mohanakrishnan in forum Qt Programming
    Replies: 2
    Last Post: 20th November 2009, 05:33
  5. converting the value from hexadecimal to decimal value
    By jjbabu in forum Qt Programming
    Replies: 2
    Last Post: 16th November 2007, 11:24

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.