Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGuiApplication::sessionId returns an empty string

QGuiApplication::sessionId returns an empty string

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 723 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.
  • S Offline
    S Offline
    shylock_the_camel
    wrote on last edited by
    #1

    Hi all,

    I am currently migrating a Qt4 desktop application to Qt5 and I have come across the problem described in the title. Indeed, with Qt5, QGuiApplication::sessionId returns an empty string whereas QCoreApplication::sessionId in Qt4 (I believe) was returning a non-empty one which fully satisfied me.

    My current development environment is Windows 8.1with Qt5.4.1 (Visual Studio) and the previous one was on Windows Vista with Qt4.7.2.

    I could not find any info regarding a change in this method. Does any anyone have a clue?

    Thanks!

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

      Hi and welcome to devnet,

      It's a regression, please open a bug report on the bug report system The session id generation for Windows has been missed when the session management code has been re-implemented in Qt 5.

      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
      • S Offline
        S Offline
        shylock_the_camel
        wrote on last edited by
        #3

        It's done.

        https://bugreports.qt.io/browse/QTBUG-47690

        Thanks for replying!

        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