You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Qt application which has been in use for many years, and is in production and shipping to customers. I setup spix according to the readme, and s.system.listMethods() does indeed return the list of methods. So I know that my client is connecting to the spix server.
The UI is defined in .ui files, and most, if not all, objects are named. For instance this is the QMainWindow definition:
s.existsAndVisible('dfh::ui::DogFishHeadGui')
it always returns false. But the application is visible and running on my machine. I'm at a loss as to why this is. Any clues or suggestions appreciated.
Oh, and clicking on a named button with s.mouseClick() does nothing as well.
UPDATE
So, ultimately, I grabbed the code for getQQuickWindowWithName() and tried to get the name of the top level window. However, it does not cast to QQuickWindow*, so apparently my app is not compatible with Spix. Which is a bummer because I can generate a list of QWidgets in much the same fashion as Spix apparently does. I just don't have time to munge Spix to work for me, I don't think.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a Qt application which has been in use for many years, and is in production and shipping to customers. I setup spix according to the readme, and s.system.listMethods() does indeed return the list of methods. So I know that my client is connecting to the spix server.
The UI is defined in .ui files, and most, if not all, objects are named. For instance this is the QMainWindow definition:
<widget class="QMainWindow" name="dfh::ui::DogFishHeadGui">
But when I issue this command:
s.existsAndVisible('dfh::ui::DogFishHeadGui')
it always returns false. But the application is visible and running on my machine. I'm at a loss as to why this is. Any clues or suggestions appreciated.
Oh, and clicking on a named button with s.mouseClick() does nothing as well.
UPDATE
So, ultimately, I grabbed the code for getQQuickWindowWithName() and tried to get the name of the top level window. However, it does not cast to QQuickWindow*, so apparently my app is not compatible with Spix. Which is a bummer because I can generate a list of QWidgets in much the same fashion as Spix apparently does. I just don't have time to munge Spix to work for me, I don't think.
Beta Was this translation helpful? Give feedback.
All reactions