Qt widget goes behind the taskbar. How to keep it above? - qt

I’ve an issue that my application window goes behind the taskbar of my PC. I use win 8. same issue i found when i use in an android device also.
The same issue is found to be discussed in a link screen-area
I tried the same.. but it is visible to user that the widget resize after show. Is there a better way to resolve this?

Related

UIImagePickerController shows a blank sheet in Simulator

I have this very odd situation in Xcode 12.01. In one of the simulators iPhone 11-14.0 when calling UIImagePickerController a blank screen pops-up showing no images and even the Cancel button is not visible. It looks like that the screen is not fully loading.
using the call:
PHPhotoLibrary.authorizationStatus()
I have authorisation to access the photo library as it returns status is .authorized:
This is happening for just that particular simulator and the others work as expected.
Any ideas?
Thanks
I finally erase all content and settings from the device menu and it seemed to have resolved the situation.
I was having similar issue. The solution is, upgrade your Xcode to version 12.2, this issue is resolved in Xcode(12.2).
Hop this helps.
Thanks

How to take webpage screenshots using QWebEngineView without opening window

I'm looking for a way to take website screenshots with QWebEngineView. The main goal is to develop a headless screencapture application that runs in the background.
I've managed to get a minimal working example to work (see this for example). However, these examples require that the QWebEngineView widget is made visible, either with calls to QWebEngineView::show(), QWebEngineView::showMinimized() or even QWebEngineView::setVisible(true), to be able to take a screen capture of a website. As this results in opening a series of windows, this solution is less than perfect.
Does anyone know of a way to use QWebEngineView to take screenshots of websites without having windows popping open?
The solution is rather easy: configure the QWebEngineView widget to not show onscreen by setting the Qt::WA_DontShowOnScreen attribute through a call to QWidget::setAttribute(Qt::WA_DontShowOnScreen).
http://doc.qt.io/qt-5/qt.html#WidgetAttribute-enum

Keep QDialog on top of everything, even fullscreen applications?

On a project I work on, using Python3 + PySide, I try to print a popup-message as some sort of notification.
This popup needs to be on top of everything, this includes fullscreen applications like games or browsers. And that's the point that does not work. It works fine for all windows on my Desktop, normal windows, maximized, but as soon as there is a fullscreen application or a borderless window ("pseudo fullscreen") the popup is created, but "behind" the fullscreen app.
I already use self.setWindowFlags(QtCore.Qt.FramelessWindowHint | QtCore.Qt.WindowStaysOnTopHint) but this flag does get ignored by other fullscreen apps.
How do I fix this? Also without giving focus to the popup.
It is just there to present information, and it is not good when your window looses focus while playing a game.
My code can be found here: https://github.com/GosuSan/PyECM
additional Info:
- my project aims to be cross-platform, so I need a platform-independend solution
- I am running linux, without having a windows machine atm,
so I can't test stuff there.
If you need any more info, let me know!
Edit:
It seems that PySide.QtGui.QSystemTrayIcon.showMessage does what I want, it works on fullscreen as well as on borderless-windows. So I will try to either find out how those messages are displayed on top, or just use them, not sure for now.

WatchKit Menu Items Not Displaying

I'm in Xcode 6.2 Beta 3 (Build 6C101), I've added a menu and two menu items to my Interface Controller, and created IBActions for both. I've given them titles and images, but when I run the app nothing displays.
I've read
https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/Menus.html
and can't see anything about need to show menu items programatically - what am I missing?
You do not need to present the menu programmatically. The only thing you need to do is wire each button to IBActions in your Watch app extension.
The most likely issue is caching of the previous Watch app storyboard. Do a clean build and try again.
Finally, as you likely know WatchKit menus only display on a "force press". They cannot be used for the main interface of the Watch app. In the Simulator, a click and hold with the mouse will simulate a force press, and the animation will make it clear when you have done one, even in contexts where it doesn't do anything.
This was solution for me- Go to Hardware->Touch Pressure->Deep Press then try tap on watch simulator.
I have recently encountered this issue on a real device, although the menu was working as expected on the watch simulator. In my case, the problem was in SF Symbol that I've used as an image.
Everything was fixed after replacing it with an image from the assets catalogue.

Customize/show/hide navigation bar in BB10 for Android app

I have ported an Android app to BB10 and it works smoothly except for 1 0r 2 issues.
One being an issue with bottom navigation bar that holds "Back", "Hide", "Info" and "Overflow" buttons. It shows up by default when the app is launched and can be hidden using the "Hide" button. To retrieve it back on screen we use a BB10 gesture(Swipe from top bezel downwards) and pin it back.
The above behavior works fine in BB10 Simulator, but not in actual device(Z10), which may be due to OS issues as mentioned in some of the posts.
To overcome the issue I wanted to know is there anyway to Customize/Show(always)/Hide the navigation bar either through Android source code or any settings in Config. Please suggest a way to resolve the issue. Thanks in advance.
I have a similar issue. But based on official answers from the Blackberry forums it appears that they would give users some control only in a 'future' release. Please take a look at this link.
http://supportforums.blackberry.com/t5/Android-Runtime-Development/Detecting-navigation-bar-presence/m-p/2466821/highlight/true#M5243
This is the exact quote,
We are looking at an option to allow users to hide the navigation bar.
Hopefully this will be available in a future release.

Resources