Python Forum
[PyQt] Ubuntu Taskbar icon shows title as "Unknown" while hover
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Ubuntu Taskbar icon shows title as "Unknown" while hover
#1
Hi all,
I am a new user in python and Qt. I did a small application using PyQt5. It is really wonderful tool. It is working awesome. I face a small issue in ubuntu. I am using FBS to build my App. App and its functionality are working fine in ubuntu.

app.setWindowTitle("my first app")
I am using the following line in my code. it shows the title in my app title bar but the title is not showing in the following places

while I move the cursor over my app icon in ubuntu sidebar, its hover says "unknown"
while I press alt+tab it shows my app icon with the "unknown" as the title.

Guide me to get my App title in those places
Reply
#2
I can not reproduce this,

with this example it shows hover Main Window


from PyQt5.QtWidgets import QMainWindow, QApplication

class mainWin(QMainWindow):
    def __init__(self, parent = None):
        super(mainWin, self).__init__(parent)
        self.setupUI()
        
    def setupUI(self):
        self.setWindowTitle("Main Window")
        self.setGeometry(0, 0, 800, 600)


if __name__ == '__main__':
    import sys
    app = QApplication(sys.argv)
    win = mainWin()
    win.show()

    sys.exit(app.exec_())
Reply
#3
Are you wanting your application to show that information -- or are you wanting your window after you have started your application to show that information -- the latter is what you are doing the former would be associated with python more than pyqt
Reply
#4
Thanks for your reply guys. my actual problem is I am using FBS for an executable generation.
https://github.com/mherrmann/fbs-tutorial
In ubuntu, while I use FBS, it generates the APP. APP working fine. But App Icon in left sidebar not showing the title. it shows "unknown" while mouse over my app icon in ubuntu left bar
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation [PyQt] Setting icon on QAction from outside QGuiApplication gradlon93 3 1,681 Jan-04-2023, 11:37 AM
Last Post: gradlon93
  [PyQt] Hover over highlighted text and open popup window DrakeSoft 2 1,450 Oct-29-2022, 04:30 PM
Last Post: DrakeSoft
  PyQt6 QAction with icon and string malonn 2 1,618 Sep-12-2022, 11:59 AM
Last Post: malonn
  how to remove icon ilyess68ysl 4 3,585 Oct-15-2021, 10:05 AM
Last Post: ilyess68ysl
  [Tkinter] window full screen w/ taskbar at top... 3python 0 1,817 Aug-04-2021, 09:06 PM
Last Post: 3python
  [Tkinter] Glow text of clickable object on hover with transition andy 6 5,913 May-11-2021, 07:39 AM
Last Post: andy
  [Kivy] Kivy pop up shows duplicate buttons from main screen CEKinch 0 1,921 Feb-05-2021, 05:40 PM
Last Post: CEKinch
  [Kivy] Kivy text label won't shows up! AVD_01 1 2,894 Jun-21-2020, 04:01 PM
Last Post: AVD_01
  Icon in tkinter menator01 8 4,844 May-03-2020, 02:01 PM
Last Post: wuf
  [Tkinter] Hover event DT2000 9 7,313 Apr-19-2020, 05:51 AM
Last Post: DT2000

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020