Question

I am creating a Qt GUI with C++.

My intention is to prompt the user when the tab bar is double clicked or single clicked. This works when I create the GUI using Qt Creator; however, when I qmake and run with XCode, the GUI does not respond to either single or double clicks.

I am using the signals tabBarDoubleClicked(int) and tabBarClicked(int) from QTabWidget.

Why do I experience different behavior when building with Qt Creator as opposed to XCode?

How can I make XCode recognize single and double clicks to the tabBar?

Edit: Also, I cannot find documentation for these functions. I find that strange due to Qt Creator listing this as applicable signals. Why?

Was it helpful?

Solution

One possible option is - as you write in the comment -, that you are using different Qt versions.

Another option in general is that people invoke qmake slightly different, e.g. from a different folder than QtCreator, etc.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top