I have an application in Qt and it has a tray icon. I dont want to open the tray icon menu if any of the window is open in the application. In effect i want to prevent the user from opening multiple windows simultaneously. Could you please help?
Just check if any of your windows are opened with isHidden() method. If you don't have list of your windows you may go with QApplication::topLevelWidgets(), but it's not the best idea.
Related
I am trying to use TightVNC viewer to connect to my VNC server running by x11vnc. Since there is no X server on my embedded device, I start the x11vnc by the following arguments:
./x11vnc -rawfb console -pipeinput
UINPUT:touch,tslib_cal=/etc/pointercal,direct_abs=/dev/input/event1
I build a very simple Qt-embedded app which only has a push button and a line edit. From the TightVNC viewer I can use mouse to click the push button and it show a message box by my design. However, the app got hanged when I press a key on the keyboard.
The VNC connection is working well because when I restart the app, I can still control it from viewer.
Because the app is just a very simple one, I tend to think this is a bug in Qt? If this is the case, is there any way to avoid or work around this? Or is there any way to control the Qt-embedded app by mouse and keyboard via VNC (also a password protection is necessary)?
The Qt-embedded version is 4.8.3.
Use QtVNC with Qt 4.8.4 and the qws platform - it works well.
as you can see in the image my AIR application that is compiled with the AIR SDK 3.7(Flex4.5) looks pixelated on a Mac OSX with a retina display. I searched around and I can't find if it is possible to do anything to improve this.
You can compare the fonts on the menu and the one on the application.
To help people struggling...
You'll need to publish as an Application with runtime embedded.
Then right click your App and show package contents.
Open the plist file and add the following, before </dict>
<key>NSHighResolutionCapable</key>
<true/>
Save it and open Terminal
Type touch and drag your app onto the terminal and hit enter.
Finally right click on your App and goto Get Info. Make sure "Open in Low Resolution is off.
in
<initialWindow>
put
<requestedDisplayResolution>high</requestedDisplayResolution>
How do you test the application icon in the Nokia Qt SDK Simulator? The one which starts when u run the the application from within the Qt Creator.
I like to see how it works & how the sizing works out, but seems there is no App Launcher process as there is in iPhone/Android. Any hints?
If what you want is to have a view of the device menu from which you can launch your app by pressing its icon the simulator doesn't provide a feature like that.
If you want to test your app in a more real enviroment or in device that you don't have maybe the Forum Nokia Remote Device Access could help you.
I have Qt GUI application which I want that the user will open one only. I want that if the user will click first time on th exe - it will open the application and when he will click it again it will open the first one.
i don't want to do it with QtSingleApplication.
I want to know exacly how to open the GUI on the second time.
Help me please!
Even if you don't want to, QtSingleApplication is what works. If you want to learn how it is implemented, you can always read the source code.
Is there a way to access other active windows in AIR?
I want to make an AIR app that look into the active application text and look for a specific pattern and make a transparent window into that text position to create a button.
Its a bit like the skype plug-in in Mozilla ... It replaces the telephone number with a button to launch skype.
There is no possibility to implement what you're looking for in AIR. It doesn't have access to other application windows.