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. [Solved]Context menu
Forum Update on Monday, May 27th 2025

[Solved]Context menu

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 2.3k Views
  • 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.
  • R Offline
    R Offline
    Ruzik
    wrote on 13 Aug 2011, 07:14 last edited by
    #1

    Hellow, i have connect
    @connect(tabWidget->getCurrentTabBar(), SIGNAL(customContextMenuRequested(const QPoint &)),this, SLOT(showContextTabMenu(const QPoint &)));@
    getCurrentTabBar - is my function, it return point to QTabBar
    Slot showContextTabMenu:

    @
    void RizekMath::showContextTabMenu(const QPoint &pos)
    {
    qDebug() << "call menu!!!";
    //other actions
    }
    @

    But this slot never call, why?
    In advance, thank for help!

    [EDIT: code formatting, Volker]

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on 13 Aug 2011, 07:17 last edited by
      #2

      This information is not enough to provide any assistance.

      Did you get any information when connecting the slot?
      Furthermore, you can check the return value of the connect to make sure that the connect has been doen properly.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rokemoon
        wrote on 13 Aug 2011, 07:28 last edited by
        #3

        Can you give us header of your RizekMath?

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Ruzik
          wrote on 13 Aug 2011, 07:28 last edited by
          #4

          Oh sorry for anxietym i found my error.
          I was very inconsiderate.
          Thank all for try to help!

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rokemoon
            wrote on 13 Aug 2011, 07:29 last edited by
            #5

            What was it? Please tell us, and then please mark the post as [Solved], thanks.

            1 Reply Last reply
            0
            • R Offline
              R Offline
              rokemoon
              wrote on 13 Aug 2011, 07:32 last edited by
              #6

              [quote author="Ruzik" date="1313220536"]
              Thank all for try to help![/quote]
              We did not make in fact nothing, but you are welcome :-)

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Ruzik
                wrote on 13 Aug 2011, 07:50 last edited by
                #7

                I fogot to call function setContextMenuTabWidget(); and create menu

                1 Reply Last reply
                0

                1/7

                13 Aug 2011, 07:14

                • Login

                • Login or register to search.
                1 out of 7
                • First post
                  1/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved