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. Show the windowicon of a QDialog in the taskboard.
Forum Updated to NodeBB v4.3 + New Features

Show the windowicon of a QDialog in the taskboard.

Scheduled Pinned Locked Moved General and Desktop
qdialogwindow icontaskboard
5 Posts 2 Posters 2.5k Views 2 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.
  • S Offline
    S Offline
    SujaMM
    wrote on last edited by
    #1

    Hello, I'm new to qt, I'm creatting an application ussing Qdilogs the problem it's that when I said dialog->show(), the icon doesn't show in the taskboard, I can see the Dialog and intereac with it, but there it's absolutly nothing in the taskboard.

    how can I fix this ??

    p3c0P 1 Reply Last reply
    0
    • S SujaMM

      Hello, I'm new to qt, I'm creatting an application ussing Qdilogs the problem it's that when I said dialog->show(), the icon doesn't show in the taskboard, I can see the Dialog and intereac with it, but there it's absolutly nothing in the taskboard.

      how can I fix this ??

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi @SujaMM,
      By taskboard do you mean taskbar ? If so then use setWindowIcon to set the icon.

      157

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SujaMM
        wrote on last edited by
        #3

        Yes that's what I ment, but it's not working, I can see the icon in my Qdialog how ever I don't see it in the taskbar. It works in linux but not in windows.

        I create a c++ class where a call the Qdialogs, so it will work like this:

        I run the c++ class in the main.cpp and in this one I call the show() methond and my Qdialog login when login closes I open another QDialog, and continious like this,

        But I never see the Icon in the taskbar.

        Can someone tellme what I'm doing wrong ??

        p3c0P 1 Reply Last reply
        0
        • S SujaMM

          Yes that's what I ment, but it's not working, I can see the icon in my Qdialog how ever I don't see it in the taskbar. It works in linux but not in windows.

          I create a c++ class where a call the Qdialogs, so it will work like this:

          I run the c++ class in the main.cpp and in this one I call the show() methond and my Qdialog login when login closes I open another QDialog, and continious like this,

          But I never see the Icon in the taskbar.

          Can someone tellme what I'm doing wrong ??

          p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          @SujaMM

          It works in linux but not in windows.

          That's kind of strange. Can you post related code ? Which Qt version are you using ?

          157

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SujaMM
            wrote on last edited by
            #5

            Thanks for the help, I fix the problem by eliminating the c++ clas that called the QDialogs, not it's an application only QDialogs.

            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