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. QT's equivalent to gtk_init_check
Forum Updated to NodeBB v4.3 + New Features

QT's equivalent to gtk_init_check

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 418 Views 1 Watching
  • 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.
  • N Offline
    N Offline
    nintyfan
    wrote on last edited by
    #1

    I need to check X session is up to return a value depending on that, so my application can decide to create windows.

    In Gtk+2 there's gtk_init_check, which returns -1 if it can't connect to X session.

    In my application I checks DISPLAY variable is set, but that's don't make me content.

    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